diff --git a/SimpleCaptcha/SimpleCaptcha.php b/SimpleCaptcha/SimpleCaptcha.php index c910ded9..f3b2143d 100644 --- a/SimpleCaptcha/SimpleCaptcha.php +++ b/SimpleCaptcha/SimpleCaptcha.php @@ -1088,7 +1088,7 @@ class SimpleCaptcha { */ private function loadText( $title, $section, $flags = Revision::READ_LATEST ) { $rev = Revision::newFromTitle( $title, 0, $flags ); - if ( is_null( $rev ) ) { + if ( $rev === null ) { return ""; } diff --git a/composer.json b/composer.json index a4c74105..2e93039d 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "require-dev": { "jakub-onderka/php-parallel-lint": "1.0.0", - "mediawiki/mediawiki-codesniffer": "28.0.0", + "mediawiki/mediawiki-codesniffer": "29.0.0", "jakub-onderka/php-console-highlighter": "0.3.2", "mediawiki/minus-x": "0.3.2", "mediawiki/mediawiki-phan-config": "0.9.0" @@ -13,8 +13,8 @@ "minus-x check ." ], "fix": [ - "phpcbf", - "minus-x fix ." + "minus-x fix .", + "phpcbf" ] }, "extra": { diff --git a/includes/auth/CaptchaAuthenticationRequest.php b/includes/auth/CaptchaAuthenticationRequest.php index d3e78544..2eaf2866 100644 --- a/includes/auth/CaptchaAuthenticationRequest.php +++ b/includes/auth/CaptchaAuthenticationRequest.php @@ -12,7 +12,8 @@ class CaptchaAuthenticationRequest extends AuthenticationRequest { public $captchaId; /** @var array Information about the captcha (e.g. question text; solution). Exact semantics - * differ between types. */ + * differ between types. + */ public $captchaData; /** @var string Captcha solution submitted by the user. */