mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-24 16:04:35 +00:00
Merge "build: Enable phpcs rule 'MediaWiki.WhiteSpace.SpaceAfterControlStructure.Incorrect' and make pass"
This commit is contained in:
commit
f7ffecf3d8
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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"/>
|
||||
|
|
Loading…
Reference in a new issue