mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CategoryTree
synced 2024-11-27 09:43:06 +00:00
build: Updating mediawiki/mediawiki-codesniffer to 29.0.0
Additional changes: * Also sorted "composer fix" command to run phpcbf last. Change-Id: I5f4050a13d1ac8db56adebe8d4bf13b84da5545a
This commit is contained in:
parent
09c1174961
commit
4180323699
|
@ -2,14 +2,14 @@
|
|||
"require-dev": {
|
||||
"jakub-onderka/php-parallel-lint": "1.0.0",
|
||||
"jakub-onderka/php-console-highlighter": "0.3.2",
|
||||
"mediawiki/mediawiki-codesniffer": "28.0.0",
|
||||
"mediawiki/mediawiki-codesniffer": "29.0.0",
|
||||
"mediawiki/minus-x": "0.3.2",
|
||||
"mediawiki/mediawiki-phan-config": "0.9.0"
|
||||
},
|
||||
"scripts": {
|
||||
"fix": [
|
||||
"phpcbf",
|
||||
"minus-x fix ."
|
||||
"minus-x fix .",
|
||||
"phpcbf"
|
||||
],
|
||||
"test": [
|
||||
"parallel-lint . --exclude vendor --exclude node_modules",
|
||||
|
|
|
@ -97,7 +97,7 @@ class CategoryTree {
|
|||
* @return array|bool
|
||||
*/
|
||||
private static function decodeNamespaces( $nn ) {
|
||||
if ( $nn === false || is_null( $nn ) ) {
|
||||
if ( $nn === false || $nn === null ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -144,7 +144,7 @@ class CategoryTree {
|
|||
public static function decodeMode( $mode ) {
|
||||
global $wgCategoryTreeDefaultOptions;
|
||||
|
||||
if ( is_null( $mode ) ) {
|
||||
if ( $mode === null ) {
|
||||
return $wgCategoryTreeDefaultOptions['mode'];
|
||||
}
|
||||
if ( is_int( $mode ) ) {
|
||||
|
@ -179,7 +179,7 @@ class CategoryTree {
|
|||
* @return bool|null|string
|
||||
*/
|
||||
public static function decodeBoolean( $value ) {
|
||||
if ( is_null( $value ) ) {
|
||||
if ( $value === null ) {
|
||||
return null;
|
||||
}
|
||||
if ( is_bool( $value ) ) {
|
||||
|
@ -216,7 +216,7 @@ class CategoryTree {
|
|||
public static function decodeHidePrefix( $value ) {
|
||||
global $wgCategoryTreeDefaultOptions;
|
||||
|
||||
if ( is_null( $value ) ) {
|
||||
if ( $value === null ) {
|
||||
return $wgCategoryTreeDefaultOptions['hideprefix'];
|
||||
}
|
||||
if ( is_int( $value ) ) {
|
||||
|
@ -294,7 +294,7 @@ class CategoryTree {
|
|||
$key .= $k . ':' . $v . ';';
|
||||
}
|
||||
|
||||
if ( !is_null( $depth ) ) {
|
||||
if ( $depth !== null ) {
|
||||
$key .= ";depth=" . $depth;
|
||||
}
|
||||
return $key;
|
||||
|
|
|
@ -48,19 +48,19 @@ class CategoryTreeHooks {
|
|||
global $wgCategoryTreeOmitNamespace;
|
||||
|
||||
if ( !isset( $wgCategoryTreeDefaultOptions['mode'] )
|
||||
|| is_null( $wgCategoryTreeDefaultOptions['mode'] )
|
||||
|| $wgCategoryTreeDefaultOptions['mode'] === null
|
||||
) {
|
||||
$wgCategoryTreeDefaultOptions['mode'] = $wgCategoryTreeDefaultMode;
|
||||
}
|
||||
|
||||
if ( !isset( $wgCategoryTreeDefaultOptions['hideprefix'] )
|
||||
|| is_null( $wgCategoryTreeDefaultOptions['hideprefix'] )
|
||||
|| $wgCategoryTreeDefaultOptions['hideprefix'] === null
|
||||
) {
|
||||
$wgCategoryTreeDefaultOptions['hideprefix'] = $wgCategoryTreeOmitNamespace;
|
||||
}
|
||||
|
||||
if ( !isset( $wgCategoryTreeCategoryPageOptions['mode'] )
|
||||
|| is_null( $wgCategoryTreeCategoryPageOptions['mode'] )
|
||||
|| $wgCategoryTreeCategoryPageOptions['mode'] === null
|
||||
) {
|
||||
$mode = $wgRequest->getVal( 'mode' );
|
||||
$wgCategoryTreeCategoryPageOptions['mode'] = ( $mode )
|
||||
|
|
Loading…
Reference in a new issue