Completed
Branch master (d87ed9)
by Tomáš
07:16
created
Standards/PSR2/Tests/ControlStructures/ControlStructureSpacingUnitTest.inc 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 if ($something) {
3 3
 }
4
-foreach ($this as $that ) {
4
+foreach ($this as $that) {
5 5
 }
6 6
 while (true) {
7 7
     for ($i = 0; $i < 10; $i++) {
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 
12 12
     foreach ($this as $that) {
13 13
         do {
14
-        } while ( true );
14
+        } while (true);
15 15
 
16 16
     }
17 17
 }
@@ -23,8 +23,8 @@  discard block
 block discarded – undo
23 23
     $settingsUpdated = FALSE;
24 24
 }
25 25
 
26
-foreach ( $blah as $var ) {
27
-    if (  $blah    ) {
26
+foreach ($blah as $var) {
27
+    if ($blah) {
28 28
     }
29 29
 }
30 30
 
@@ -39,8 +39,8 @@  discard block
 block discarded – undo
39 39
 // @codingStandardsChangeSetting PSR2.ControlStructures.ControlStructureSpacing requiredSpacesAfterOpen 1
40 40
 // @codingStandardsChangeSetting PSR2.ControlStructures.ControlStructureSpacing requiredSpacesBeforeClose 1
41 41
 foreach ($something as $blah => $that) {}
42
-foreach ( $something as $blah => $that ) {}
43
-foreach (  $something as $blah => $that  ) {}
42
+foreach ($something as $blah => $that) {}
43
+foreach ($something as $blah => $that) {}
44 44
 // @codingStandardsChangeSetting PSR2.ControlStructures.ControlStructureSpacing requiredSpacesAfterOpen 0
45 45
 // @codingStandardsChangeSetting PSR2.ControlStructures.ControlStructureSpacing requiredSpacesBeforeClose 0
46 46
 
Please login to merge, or discard this patch.
Standards/PSR2/Tests/ControlStructures/SwitchDeclarationUnitTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
                 114 => 1,
58 58
                 128 => 1,
59 59
                 141 => 1,
60
-               );
60
+                );
61 61
 
62 62
     }//end getErrorList()
63 63
 
Please login to merge, or discard this patch.
Standards/PSR2/Tests/ControlStructures/ElseIfDeclarationUnitTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
         return array(
59 59
                 4  => 1,
60 60
                 12 => 1,
61
-               );
61
+                );
62 62
 
63 63
     }//end getWarningList()
64 64
 
Please login to merge, or discard this patch.
CodeSniffer/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
         case 'EndFileNewlineUnitTest.7.inc':
50 50
             return array(
51 51
                     2 => 1,
52
-                   );
52
+                    );
53 53
             break;
54 54
         default:
55 55
             return array();
Please login to merge, or discard this patch.
Switch Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -43,17 +43,17 @@
 block discarded – undo
43 43
     public function getErrorList($testFile='')
44 44
     {
45 45
         switch ($testFile) {
46
-        case 'EndFileNewlineUnitTest.1.inc':
47
-        case 'EndFileNewlineUnitTest.3.inc':
48
-        case 'EndFileNewlineUnitTest.6.inc':
49
-        case 'EndFileNewlineUnitTest.7.inc':
50
-            return array(
51
-                    2 => 1,
52
-                   );
53
-            break;
54
-        default:
55
-            return array();
56
-            break;
46
+            case 'EndFileNewlineUnitTest.1.inc':
47
+            case 'EndFileNewlineUnitTest.3.inc':
48
+            case 'EndFileNewlineUnitTest.6.inc':
49
+            case 'EndFileNewlineUnitTest.7.inc':
50
+                return array(
51
+                        2 => 1,
52
+                       );
53
+                break;
54
+            default:
55
+                return array();
56
+                break;
57 57
         }//end switch
58 58
 
59 59
     }//end getErrorList()
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      *
41 41
      * @return array<int, int>
42 42
      */
43
-    public function getErrorList($testFile='')
43
+    public function getErrorList($testFile = '')
44 44
     {
45 45
         switch ($testFile) {
46 46
         case 'EndFileNewlineUnitTest.1.inc':
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      *
70 70
      * @return array<int, int>
71 71
      */
72
-    public function getWarningList($testFile='')
72
+    public function getWarningList($testFile = '')
73 73
     {
74 74
         return array();
75 75
 
Please login to merge, or discard this patch.
CodeSniffer/Standards/PSR2/Tests/Files/ClosingTagUnitTest.php 2 patches
Switch Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -43,15 +43,15 @@
 block discarded – undo
43 43
     public function getErrorList($testFile='')
44 44
     {
45 45
         switch ($testFile) {
46
-        case 'ClosingTagUnitTest.1.inc':
47
-            return array(11 => 1);
46
+            case 'ClosingTagUnitTest.1.inc':
47
+                return array(11 => 1);
48 48
 
49
-        case 'ClosingTagUnitTest.4.inc':
50
-        case 'ClosingTagUnitTest.5.inc':
51
-            return array(1 => 1);
49
+            case 'ClosingTagUnitTest.4.inc':
50
+            case 'ClosingTagUnitTest.5.inc':
51
+                return array(1 => 1);
52 52
 
53
-        default:
54
-            return array();
53
+            default:
54
+                return array();
55 55
         }
56 56
 
57 57
     }//end getErrorList()
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      *
41 41
      * @return array<int, int>
42 42
      */
43
-    public function getErrorList($testFile='')
43
+    public function getErrorList($testFile = '')
44 44
     {
45 45
         switch ($testFile) {
46 46
         case 'ClosingTagUnitTest.1.inc':
Please login to merge, or discard this patch.
CodeSniffer/Standards/PSR2/Tests/Methods/FunctionCallSignatureUnitTest.inc 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
 ], $baz);
7 7
 
8 8
 // ok
9
-$app->get('/hello/{name}', function ($name) use ($app) {
9
+$app->get('/hello/{name}', function($name) use ($app) {
10 10
     return 'Hello '.$app->escape($name);
11 11
 }, array(
12 12
     '1',
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     . 'text', 'string');
64 64
 
65 65
 foo(bar(), $a);
66
-foo();bar();
66
+foo(); bar();
67 67
 
68 68
 foo(
69 69
     true
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 
93 93
 if (array_filter(
94 94
     $commands,
95
-    function ($cmd) use ($commandName) {
95
+    function($cmd) use ($commandName) {
96 96
         return ($cmd['name'] == $commandName);
97 97
     }
98 98
 )) {
@@ -101,14 +101,14 @@  discard block
 block discarded – undo
101 101
 
102 102
 myFunction(
103 103
     'foo', (object) array(
104
-        'bar' => function ($x) {
104
+        'bar' => function($x) {
105 105
             return true;
106 106
         },
107 107
         'baz' => false
108 108
     )
109 109
 );
110 110
 $qux = array_filter(
111
-    $quux, function ($x) {
111
+    $quux, function($x) {
112 112
         return $x;
113 113
     }
114 114
 );
Please login to merge, or discard this patch.
CodeSniffer/Standards/PSR2/Tests/Methods/MethodDeclarationUnitTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
                 11 => 1,
46 46
                 13 => 1,
47 47
                 15 => 3,
48
-               );
48
+                );
49 49
 
50 50
     }//end getErrorList()
51 51
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     {
63 63
         return array(
64 64
                 5 => 1,
65
-               );
65
+                );
66 66
 
67 67
     }//end getWarningList()
68 68
 
Please login to merge, or discard this patch.
CodeSniffer/Standards/PSR2/Tests/Methods/FunctionCallSignatureUnitTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
                 103 => 1,
53 53
                 111 => 1,
54 54
                 117 => 4,
55
-               );
55
+                );
56 56
 
57 57
     }//end getErrorList()
58 58
 
Please login to merge, or discard this patch.
CodeSniffer/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.php 3 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,12 +48,12 @@
 block discarded – undo
48 48
                     4  => 1,
49 49
                     5  => 1,
50 50
                     10 => 2,
51
-                   );
51
+                    );
52 52
         case 'UseDeclarationUnitTest.3.inc':
53 53
             return array(
54 54
                     4 => 1,
55 55
                     6 => 1,
56
-                   );
56
+                    );
57 57
         default:
58 58
             return array();
59 59
         }//end switch
Please login to merge, or discard this patch.
Switch Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -43,19 +43,19 @@
 block discarded – undo
43 43
     public function getErrorList($testFile='')
44 44
     {
45 45
         switch ($testFile) {
46
-        case 'UseDeclarationUnitTest.2.inc':
47
-            return array(
48
-                    4  => 1,
49
-                    5  => 1,
50
-                    10 => 2,
51
-                   );
52
-        case 'UseDeclarationUnitTest.3.inc':
53
-            return array(
54
-                    4 => 1,
55
-                    6 => 1,
56
-                   );
57
-        default:
58
-            return array();
46
+            case 'UseDeclarationUnitTest.2.inc':
47
+                return array(
48
+                        4  => 1,
49
+                        5  => 1,
50
+                        10 => 2,
51
+                       );
52
+            case 'UseDeclarationUnitTest.3.inc':
53
+                return array(
54
+                        4 => 1,
55
+                        6 => 1,
56
+                       );
57
+            default:
58
+                return array();
59 59
         }//end switch
60 60
 
61 61
     }//end getErrorList()
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      *
41 41
      * @return array<int, int>
42 42
      */
43
-    public function getErrorList($testFile='')
43
+    public function getErrorList($testFile = '')
44 44
     {
45 45
         switch ($testFile) {
46 46
         case 'UseDeclarationUnitTest.2.inc':
Please login to merge, or discard this patch.