diff --git a/.phpcs.xml b/.phpcs.xml index 7deb4a9a..6cbf6fc0 100644 --- a/.phpcs.xml +++ b/.phpcs.xml @@ -1,6 +1,7 @@ + diff --git a/composer.json b/composer.json index 4ad53bf0..bf1d07d2 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "require-dev": { "jakub-onderka/php-parallel-lint": "1.0.0", - "mediawiki/mediawiki-codesniffer": "23.0.0", + "mediawiki/mediawiki-codesniffer": "24.0.0", "jakub-onderka/php-console-highlighter": "0.3.2", "mediawiki/minus-x": "0.3.1", "mediawiki/mediawiki-phan-config": "0.3.0" diff --git a/src/SpecialReplaceText.php b/src/SpecialReplaceText.php index c129c205..b6fbee2f 100644 --- a/src/SpecialReplaceText.php +++ b/src/SpecialReplaceText.php @@ -152,7 +152,7 @@ class SpecialReplaceText extends SpecialPage { $this->showForm( 'replacetext_nonamespace' ); return; } - if ( ! $this->edit_pages && ! $this->move_pages ) { + if ( !$this->edit_pages && !$this->move_pages ) { $this->showForm( 'replacetext_editormove' ); return; } @@ -205,7 +205,7 @@ class SpecialReplaceText extends SpecialPage { ); } else { $warning_msg = $this->getAnyWarningMessageBeforeReplace( $titles_for_edit, $titles_for_move ); - if ( ! is_null( $warning_msg ) ) { + if ( !is_null( $warning_msg ) ) { $out->addWikiText( "
$warning_msg

" ); }