mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-09-23 18:28:20 +00:00
Remove PHPCS exclusion and fix it
Again, we're left with only one exclusion that I don't know how to fix. See phab for a longer explanation. Bug: T178007 Change-Id: I017097abef755bc65c77a5658ad92320bc42d78b
This commit is contained in:
parent
5cdab14eb8
commit
48989ffcda
|
@ -2,7 +2,6 @@
|
|||
<ruleset>
|
||||
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
|
||||
<exclude name="MediaWiki.Commenting.FunctionAnnotations.UnrecognizedAnnotation" />
|
||||
<exclude name="Squiz.PHP.NonExecutableCode.Unreachable" />
|
||||
</rule>
|
||||
<rule ref="Generic.Files.LineLength">
|
||||
<exclude-pattern>AbuseFilter\.alias\.php</exclude-pattern>
|
||||
|
|
|
@ -254,7 +254,6 @@ class AbuseFilterPager extends TablePager {
|
|||
)->parse();
|
||||
case 'af_group':
|
||||
return AbuseFilter::nameGroup( $value );
|
||||
break;
|
||||
default:
|
||||
throw new MWException( "Unknown row type $name!" );
|
||||
}
|
||||
|
|
|
@ -74,7 +74,6 @@ class GlobalAbuseFilterPager extends AbuseFilterPager {
|
|||
case 'af_group':
|
||||
// If this is global, local name probably doesn't exist, but try
|
||||
return AbuseFilter::nameGroup( $value );
|
||||
break;
|
||||
default:
|
||||
throw new MWException( "Unknown row type $name!" );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue