From 0958a0bce4bd8390c97ce2042f1eb04df8308293 Mon Sep 17 00:00:00 2001 From: "James D. Forrester" Date: Thu, 9 Jan 2020 15:48:34 -0800 Subject: Coding style: Auto-fix MediaWiki.Usage.IsNull.IsNull Change-Id: I90cfe8366c0245c9c67e598d17800684897a4e27 --- includes/api/ApiQueryIWBacklinks.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'includes/api/ApiQueryIWBacklinks.php') diff --git a/includes/api/ApiQueryIWBacklinks.php b/includes/api/ApiQueryIWBacklinks.php index cbbd54e9f2ca..8569854a7808 100644 --- a/includes/api/ApiQueryIWBacklinks.php +++ b/includes/api/ApiQueryIWBacklinks.php @@ -59,7 +59,7 @@ class ApiQueryIWBacklinks extends ApiQueryGeneratorBase { ); } - if ( !is_null( $params['continue'] ) ) { + if ( $params['continue'] !== null ) { $cont = explode( '|', $params['continue'] ); $this->dieContinueUsageIf( count( $cont ) != 3 ); @@ -133,7 +133,7 @@ class ApiQueryIWBacklinks extends ApiQueryGeneratorBase { break; } - if ( !is_null( $resultPageSet ) ) { + if ( $resultPageSet !== null ) { $pages[] = Title::newFromRow( $row ); } else { $entry = [ 'pageid' => (int)$row->page_id ]; @@ -164,7 +164,7 @@ class ApiQueryIWBacklinks extends ApiQueryGeneratorBase { } } - if ( is_null( $resultPageSet ) ) { + if ( $resultPageSet === null ) { $result->addIndexedTagName( [ 'query', $this->getModuleName() ], 'iw' ); } else { $resultPageSet->populateFromTitles( $pages ); -- cgit v1.2.3