mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CookieWarning
synced 2024-12-18 00:30:43 +00:00
Fix phpcs exclude rules
Change-Id: Ia39e6189d666af7d6fe1ccd14e8e7cae277a4428
This commit is contained in:
parent
1416dc5465
commit
eb27449d70
|
@ -1,9 +1,6 @@
|
|||
<?xml version="1.0"?>
|
||||
<ruleset>
|
||||
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
|
||||
<exclude name="Generic.Files.OneObjectStructurePerFile.MultipleFound" />
|
||||
<exclude name="MediaWiki.Files.ClassMatchesFilename.NotMatch" />
|
||||
</rule>
|
||||
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki" />
|
||||
<file>.</file>
|
||||
<arg name="extensions" value="php,php5,inc" />
|
||||
<arg name="encoding" value="UTF-8" />
|
||||
|
|
|
@ -127,7 +127,8 @@
|
|||
"remoteExtPath": "CookieWarning"
|
||||
},
|
||||
"AutoloadClasses": {
|
||||
"CookieWarningHooks": "includes/CookieWarning.hooks.php",
|
||||
"CookieWarningHooks": "includes/CookieWarningHooks.php",
|
||||
"CookieWarningTestTemplate": "tests/phpunit/includes/CookieWarningTestTemplate.php",
|
||||
"GeoLocation": "includes/GeoLocation.php"
|
||||
},
|
||||
"ConfigRegistry": {
|
||||
|
|
|
@ -176,9 +176,3 @@ class CookieWarningHooksTest extends MediaWikiLangTestCase {
|
|||
$instance->setAccessible( false );
|
||||
}
|
||||
}
|
||||
|
||||
class CookieWarningTestTemplate extends BaseTemplate {
|
||||
public function execute() {
|
||||
return;
|
||||
}
|
||||
}
|
10
tests/phpunit/includes/CookieWarningTestTemplate.php
Normal file
10
tests/phpunit/includes/CookieWarningTestTemplate.php
Normal file
|
@ -0,0 +1,10 @@
|
|||
<?php
|
||||
|
||||
class CookieWarningTestTemplate extends BaseTemplate {
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function execute() {
|
||||
return;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue