aboutsummaryrefslogtreecommitdiffstats
path: root/includes/filerepo/file/OldLocalFile.php
diff options
context:
space:
mode:
authorJames D. Forrester <jforrester@wikimedia.org>2020-01-09 15:48:34 -0800
committerJames D. Forrester <jforrester@wikimedia.org>2020-01-10 14:17:13 -0800
commit0958a0bce4bd8390c97ce2042f1eb04df8308293 (patch)
treea1f9eb5d647b1150c3188f698129e3eb7a0c1393 /includes/filerepo/file/OldLocalFile.php
parent41f8acfd52b36759f7a10196f36af5e2d9f81427 (diff)
downloadmediawikicore-0958a0bce4bd8390c97ce2042f1eb04df8308293.tar.gz
mediawikicore-0958a0bce4bd8390c97ce2042f1eb04df8308293.zip
Coding style: Auto-fix MediaWiki.Usage.IsNull.IsNull
Change-Id: I90cfe8366c0245c9c67e598d17800684897a4e27
Diffstat (limited to 'includes/filerepo/file/OldLocalFile.php')
-rw-r--r--includes/filerepo/file/OldLocalFile.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/filerepo/file/OldLocalFile.php b/includes/filerepo/file/OldLocalFile.php
index f5b7d4384cc6..05803dddb808 100644
--- a/includes/filerepo/file/OldLocalFile.php
+++ b/includes/filerepo/file/OldLocalFile.php
@@ -162,7 +162,7 @@ class OldLocalFile extends LocalFile {
parent::__construct( $title, $repo );
$this->requestedTime = $time;
$this->archive_name = $archiveName;
- if ( is_null( $time ) && is_null( $archiveName ) ) {
+ if ( $time === null && $archiveName === null ) {
throw new MWException( __METHOD__ . ': must specify at least one of $time or $archiveName' );
}
}
@@ -207,7 +207,7 @@ class OldLocalFile extends LocalFile {
: $this->repo->getReplicaDB();
$conds = [ 'oi_name' => $this->getName() ];
- if ( is_null( $this->requestedTime ) ) {
+ if ( $this->requestedTime === null ) {
$conds['oi_archive_name'] = $this->archive_name;
} else {
$conds['oi_timestamp'] = $dbr->timestamp( $this->requestedTime );
@@ -235,7 +235,7 @@ class OldLocalFile extends LocalFile {
$this->extraDataLoaded = true;
$dbr = $this->repo->getReplicaDB();
$conds = [ 'oi_name' => $this->getName() ];
- if ( is_null( $this->requestedTime ) ) {
+ if ( $this->requestedTime === null ) {
$conds['oi_archive_name'] = $this->archive_name;
} else {
$conds['oi_timestamp'] = $dbr->timestamp( $this->requestedTime );