mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TitleBlacklist
synced 2024-11-27 15:30:48 +00:00
build: Updating mediawiki/mediawiki-codesniffer to 0.10.0
Change-Id: I023422fc492220c86c827c45150ab81b734a26e8
This commit is contained in:
parent
1af3a254e7
commit
354ea9bb02
|
@ -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 );
|
||||
|
|
|
@ -45,7 +45,6 @@ class TitleBlacklist {
|
|||
* defined.
|
||||
*/
|
||||
public static function destroySingleton() {
|
||||
|
||||
if ( !defined( 'MW_PHPUNIT_TEST' ) ) {
|
||||
throw new MWException(
|
||||
'Can not invoke ' . __METHOD__ . '() ' .
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
<?php
|
||||
|
||||
if ( function_exists( 'wfLoadExtension' ) ) {
|
||||
|
||||
/** @defgroup Title blacklist source types
|
||||
* @deprecated Use values directly instead.
|
||||
*/
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -135,6 +135,5 @@ class ApiQueryTitleBlacklistTest extends ApiTestCase {
|
|||
$listed[0]['titleblacklist']['result'],
|
||||
'Spoofed title is blacklisted'
|
||||
);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue