Fix phpcs exclude rules

Change-Id: Ia39e6189d666af7d6fe1ccd14e8e7cae277a4428
This commit is contained in:
Fomafix 2018-03-24 18:21:54 +01:00 committed by Florian Schmidt
parent 1416dc5465
commit eb27449d70
5 changed files with 13 additions and 11 deletions

View file

@ -1,9 +1,6 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<ruleset> <ruleset>
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki"> <rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki" />
<exclude name="Generic.Files.OneObjectStructurePerFile.MultipleFound" />
<exclude name="MediaWiki.Files.ClassMatchesFilename.NotMatch" />
</rule>
<file>.</file> <file>.</file>
<arg name="extensions" value="php,php5,inc" /> <arg name="extensions" value="php,php5,inc" />
<arg name="encoding" value="UTF-8" /> <arg name="encoding" value="UTF-8" />

View file

@ -127,7 +127,8 @@
"remoteExtPath": "CookieWarning" "remoteExtPath": "CookieWarning"
}, },
"AutoloadClasses": { "AutoloadClasses": {
"CookieWarningHooks": "includes/CookieWarning.hooks.php", "CookieWarningHooks": "includes/CookieWarningHooks.php",
"CookieWarningTestTemplate": "tests/phpunit/includes/CookieWarningTestTemplate.php",
"GeoLocation": "includes/GeoLocation.php" "GeoLocation": "includes/GeoLocation.php"
}, },
"ConfigRegistry": { "ConfigRegistry": {

View file

@ -176,9 +176,3 @@ class CookieWarningHooksTest extends MediaWikiLangTestCase {
$instance->setAccessible( false ); $instance->setAccessible( false );
} }
} }
class CookieWarningTestTemplate extends BaseTemplate {
public function execute() {
return;
}
}

View file

@ -0,0 +1,10 @@
<?php
class CookieWarningTestTemplate extends BaseTemplate {
/**
* @inheritDoc
*/
public function execute() {
return;
}
}