Merge "build: Enable phpcs rule 'MediaWiki.WhiteSpace.SpaceAfterControlStructure.Incorrect' and make pass"

This commit is contained in:
jenkins-bot 2015-10-29 17:39:48 +00:00 committed by Gerrit Code Review
commit f7ffecf3d8
2 changed files with 1 additions and 2 deletions

View file

@ -28,7 +28,7 @@ class EchoUserRightsPresentationModel extends EchoEventPresentationModel {
// Get the localized group names, bug 55338
$groups = array();
foreach( $extra[$action] as $group ) {
foreach ( $extra[$action] as $group ) {
$msg = $this->msg( 'group-' . $group );
$groups[] = $msg->isBlank() ? $group : $msg->text();
}

View file

@ -4,7 +4,6 @@
<rule ref="vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
<exclude name="Generic.Files.LineLength"/>
<exclude name="MediaWiki.VariableAnalysis.UnusedGlobalVariables"/>
<exclude name="MediaWiki.WhiteSpace.SpaceAfterControlStructure.Incorrect"/>
</rule>
<arg name="encoding" value="utf8"/>
<arg name="extensions" value="php,php5,inc"/>