Re-enable Squiz.WhiteSpace.ScopeClosingBrace.Indent
authorReedy <reedy@wikimedia.org>
Sat, 26 Sep 2015 15:53:01 +0000 (16:53 +0100)
committerReedy <reedy@wikimedia.org>
Sat, 26 Sep 2015 16:09:54 +0000 (16:09 +0000)
Change-Id: I743c4ce019321d631c0a11ee2112fe9aa8ba4c5d

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

index 03b2af2..9d05cc9 100644 (file)
--- a/phpcs.xml
+++ b/phpcs.xml
@@ -11,7 +11,6 @@
                <exclude name="Generic.CodeAnalysis.ForLoopWithTestFunctionCall.NotAllowed"/>
                <exclude name="MediaWiki.WhiteSpace.SpaceAfterControlStructure.Incorrect"/>
                <exclude name="Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed"/>
-               <exclude name="Squiz.WhiteSpace.ScopeClosingBrace.Indent"/>
                <exclude name="Squiz.WhiteSpace.SemicolonSpacing.Incorrect"/>
        </rule>
        <file>.</file>
index c4d87c2..59bfb03 100644 (file)
@@ -111,7 +111,7 @@ class CssContentTest extends JavaScriptContentTest {
                );
        }
 
-               public static function dataEquals() {
+       public static function dataEquals() {
                return array(
                        array( new CssContent( 'hallo' ), null, false ),
                        array( new CssContent( 'hallo' ), new CssContent( 'hallo' ), true ),
index 551d3a7..0368219 100644 (file)
@@ -64,12 +64,12 @@ class MigrateFileRepoLayoutTest extends MediaWikiTestCase {
 
        protected function deleteFilesRecursively( $directory ) {
                foreach ( glob( $directory . '/*' ) as $file ) {
-               if ( is_dir( $file ) ) {
-                       $this->deleteFilesRecursively( $file );
-               } else {
-                       unlink( $file );
-               }
-               }
+                       if ( is_dir( $file ) ) {
+                               $this->deleteFilesRecursively( $file );
+                       } else {
+                               unlink( $file );
+                       }
+               }
 
                rmdir( $directory );
        }