build: Updating mediawiki/mediawiki-codesniffer to 0.10.0

Change-Id: I023422fc492220c86c827c45150ab81b734a26e8
This commit is contained in:
Umherirrender 2017-07-08 12:41:21 +02:00
parent 1af3a254e7
commit 354ea9bb02
6 changed files with 3 additions and 5 deletions

View file

@ -253,7 +253,6 @@ class TitleBlacklistHooks {
$title = $editor->mTitle;
if ( $title->getNamespace() == NS_MEDIAWIKI && $title->getDBkey() == 'Titleblacklist' ) {
$blackList = TitleBlacklist::singleton();
$bl = $blackList->parseBlacklist( $text, 'page' );
$ok = $blackList->validate( $bl );

View file

@ -45,7 +45,6 @@ class TitleBlacklist {
* defined.
*/
public static function destroySingleton() {
if ( !defined( 'MW_PHPUNIT_TEST' ) ) {
throw new MWException(
'Can not invoke ' . __METHOD__ . '() ' .

View file

@ -1,7 +1,6 @@
<?php
if ( function_exists( 'wfLoadExtension' ) ) {
/** @defgroup Title blacklist source types
* @deprecated Use values directly instead.
*/

View file

@ -2,7 +2,7 @@
"require-dev": {
"jakub-onderka/php-parallel-lint": "0.9.2",
"jakub-onderka/php-console-highlighter": "0.3.2",
"mediawiki/mediawiki-codesniffer": "0.7.2"
"mediawiki/mediawiki-codesniffer": "0.10.0"
},
"scripts": {
"fix": "phpcbf",

View file

@ -2,6 +2,8 @@
<ruleset>
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
<exclude name="Squiz.Classes.ValidClassName.NotCamelCaps"/>
<exclude name="MediaWiki.Commenting.FunctionComment"/>
<exclude name="MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment"/>
</rule>
<rule ref="MediaWiki.NamingConventions.ValidGlobalName">
<properties>

View file

@ -135,6 +135,5 @@ class ApiQueryTitleBlacklistTest extends ApiTestCase {
$listed[0]['titleblacklist']['result'],
'Spoofed title is blacklisted'
);
}
}