Re-enable Squiz.WhiteSpace.SemicolonSpacing.Incorrect
authorReedy <reedy@wikimedia.org>
Sat, 26 Sep 2015 16:41:22 +0000 (17:41 +0100)
committerReedy <reedy@wikimedia.org>
Sat, 26 Sep 2015 16:41:22 +0000 (17:41 +0100)
Change-Id: Ie86c512fbca07f41b252d95de3ab92da3a050e72

phpcs.xml
tests/phpunit/includes/filerepo/MigrateFileRepoLayoutTest.php

index d1453e3..9ad5435 100644 (file)
--- a/phpcs.xml
+++ b/phpcs.xml
@@ -10,7 +10,6 @@
                <exclude name="Generic.CodeAnalysis.ForLoopWithTestFunctionCall.NotAllowed"/>
                <exclude name="MediaWiki.WhiteSpace.SpaceAfterControlStructure.Incorrect"/>
                <exclude name="Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed"/>
-               <exclude name="Squiz.WhiteSpace.SemicolonSpacing.Incorrect"/>
        </rule>
        <file>.</file>
        <arg name="encoding" value="utf8"/>
index 0368219..679382b 100644 (file)
@@ -103,7 +103,7 @@ class MigrateFileRepoLayoutTest extends MediaWikiTestCase {
                        . '/'
                        . substr( $sha1, 2, 1 )
                        . '/'
-                       . $sha1 ;
+                       . $sha1;
 
                $this->assertEquals( file_get_contents( $expectedOriginalFilepath ), $this->text, 'New sha1 file should be exist and have the right contents' );