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 /includes/api/ApiUnblock.php | |
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 'includes/api/ApiUnblock.php')
-rw-r--r-- | includes/api/ApiUnblock.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/api/ApiUnblock.php b/includes/api/ApiUnblock.php index 15c256448870..8895c8ab94c9 100644 --- a/includes/api/ApiUnblock.php +++ b/includes/api/ApiUnblock.php @@ -58,7 +58,7 @@ class ApiUnblock extends ApiBase { } // Check if user can add tags - if ( !is_null( $params['tags'] ) ) { + if ( $params['tags'] !== null ) { $ableToTag = ChangeTags::canAddTagsAccompanyingChange( $params['tags'], $user ); if ( !$ableToTag->isOK() ) { $this->dieStatus( $ableToTag ); @@ -76,7 +76,7 @@ class ApiUnblock extends ApiBase { } $data = [ - 'Target' => is_null( $params['id'] ) ? $params['user'] : "#{$params['id']}", + 'Target' => $params['id'] === null ? $params['user'] : "#{$params['id']}", 'Reason' => $params['reason'], 'Tags' => $params['tags'] ]; |