diff options
author | James D. Forrester <jforrester@wikimedia.org> | 2020-01-09 15:48:34 -0800 |
---|---|---|
committer | James D. Forrester <jforrester@wikimedia.org> | 2020-01-10 14:17:13 -0800 |
commit | 0958a0bce4bd8390c97ce2042f1eb04df8308293 (patch) | |
tree | a1f9eb5d647b1150c3188f698129e3eb7a0c1393 /maintenance/storage | |
parent | 41f8acfd52b36759f7a10196f36af5e2d9f81427 (diff) | |
download | mediawikicore-0958a0bce4bd8390c97ce2042f1eb04df8308293.tar.gz mediawikicore-0958a0bce4bd8390c97ce2042f1eb04df8308293.zip |
Coding style: Auto-fix MediaWiki.Usage.IsNull.IsNull
Change-Id: I90cfe8366c0245c9c67e598d17800684897a4e27
Diffstat (limited to 'maintenance/storage')
-rw-r--r-- | maintenance/storage/checkStorage.php | 4 | ||||
-rw-r--r-- | maintenance/storage/trackBlobs.php | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/maintenance/storage/checkStorage.php b/maintenance/storage/checkStorage.php index d72dc2bca77d..453d9f1ae16e 100644 --- a/maintenance/storage/checkStorage.php +++ b/maintenance/storage/checkStorage.php @@ -227,7 +227,7 @@ class CheckStorage { // Check external normal blobs for existence if ( count( $externalNormalBlobs ) ) { - if ( is_null( $this->dbStore ) ) { + if ( $this->dbStore === null ) { $esFactory = MediaWikiServices::getInstance()->getExternalStoreFactory(); $this->dbStore = $esFactory->getStore( 'DB' ); } @@ -428,7 +428,7 @@ class CheckStorage { return; } - if ( is_null( $this->dbStore ) ) { + if ( $this->dbStore === null ) { $esFactory = MediaWikiServices::getInstance()->getExternalStoreFactory(); $this->dbStore = $esFactory->getStore( 'DB' ); } diff --git a/maintenance/storage/trackBlobs.php b/maintenance/storage/trackBlobs.php index 4e7b93898006..fb37c4db1853 100644 --- a/maintenance/storage/trackBlobs.php +++ b/maintenance/storage/trackBlobs.php @@ -335,7 +335,7 @@ class TrackBlobs { continue; } $table = $extDB->getLBInfo( 'blobs table' ); - if ( is_null( $table ) ) { + if ( $table === null ) { $table = 'blobs'; } if ( !$extDB->tableExists( $table ) ) { |