Completed
Push — master ( c823b8...bcb263 )
by Tomáš
18:49 queued 12:17
created
src/Standards/Generic/Tests/PHP/ForbiddenFunctionsUnitTest.inc 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,9 +23,9 @@
 block discarded – undo
23 23
 function count() {}
24 24
 
25 25
 trait DelProvider {
26
-  public function delete() {
26
+    public function delete() {
27 27
     //irrelevant
28
-  }
28
+    }
29 29
 }
30 30
 
31 31
 class LeftSideTest {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 delete($filepath);
5 5
 unset($filepath);
6 6
 $size = \sizeof($array);
7
-$size = \my\ns\sizeof('abc');($array);
7
+$size = \my\ns\sizeof('abc'); ($array);
8 8
 
9 9
 // No errors thrown for class methods.
10 10
 $size = MyClass::sizeof($array);
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/PHP/UpperCaseConstantUnitTest.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
                 48 => 1,
58 58
                 70 => 1,
59 59
                 71 => 1,
60
-               );
60
+                );
61 61
 
62 62
     }//end getErrorList()
63 63
 
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/Arrays/DisallowLongArraySyntaxUnitTest.inc 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
         1
9 9
         2
10 10
         3
11
-       );
11
+        );
12 12
 $var = array/*comment*/(1,2,3);
13 13
 $var = array;
14 14
 
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@
 block discarded – undo
1 1
 <?php
2 2
 $var = array();
3
-$var = [1,2,3];
4
-$var = array(1,2,3);
3
+$var = [1, 2, 3];
4
+$var = array(1, 2, 3);
5 5
 echo $var[1];
6
-$foo = array($var[1],$var[2]);
6
+$foo = array($var[1], $var[2]);
7 7
 $foo = array(
8 8
         1
9 9
         2
10 10
         3
11 11
        );
12
-$var = array/*comment*/(1,2,3);
12
+$var = array/*comment*/(1, 2, 3);
13 13
 $var = array;
14 14
 
15 15
 function foo(array $array) {}
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/Arrays/DisallowShortArraySyntaxUnitTest.inc 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,4 +9,4 @@
 block discarded – undo
9 9
         1
10 10
         2
11 11
         3
12
-       ];
13 12
\ No newline at end of file
13
+        ];
14 14
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 $var = array();
3 3
 $var = [];
4
-$var = array(1,2,3);
5
-$var = [1,2,3];
4
+$var = array(1, 2, 3);
5
+$var = [1, 2, 3];
6 6
 echo $var[1];
7
-$foo = [$var[1],$var[2]];
7
+$foo = [$var[1], $var[2]];
8 8
 $foo = [
9 9
         1
10 10
         2
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/Arrays/DisallowLongArraySyntaxUnitTest.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
                 48 => 1,
58 58
                 70 => 1,
59 59
                 71 => 1,
60
-               );
60
+                );
61 61
 
62 62
     }//end getErrorList()
63 63
 
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/Arrays/DisallowShortArraySyntaxUnitTest.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
                 48 => 1,
58 58
                 70 => 1,
59 59
                 71 => 1,
60
-               );
60
+                );
61 61
 
62 62
     }//end getErrorList()
63 63
 
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/Strings/UnnecessaryStringConcatUnitTest.php 3 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,13 +47,13 @@
 block discarded – undo
47 47
             return array(
48 48
                     4 => 1,
49 49
                     5 => 1,
50
-                   );
50
+                    );
51 51
         } else if (version_compare(PHP_VERSION, '5.4.0RC1') >= 0) {
52 52
             // Shorthand echo is always available from PHP 5.4.0 but needed the
53 53
             // short_open_tag ini var to be set for versions before this.
54 54
             return array(
55 55
                     4 => 1,
56
-                   );
56
+                    );
57 57
         }
58 58
 
59 59
         return array();
Please login to merge, or discard this patch.
Switch Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -43,28 +43,28 @@
 block discarded – undo
43 43
     public function getErrorList($testFile='UnnecessaryStringConcatUnitTest.inc')
44 44
     {
45 45
         switch ($testFile) {
46
-        case 'UnnecessaryStringConcatUnitTest.inc':
47
-            return array(
48
-                    2  => 1,
49
-                    6  => 1,
50
-                    9  => 1,
51
-                    12 => 1,
52
-                    19 => 1,
53
-                    20 => 1,
54
-                   );
55
-            break;
56
-        case 'UnnecessaryStringConcatUnitTest.js':
57
-            return array(
58
-                    1  => 1,
59
-                    8  => 1,
60
-                    11 => 1,
61
-                    14 => 1,
62
-                    15 => 1,
63
-                   );
64
-            break;
65
-        default:
66
-            return array();
67
-            break;
46
+            case 'UnnecessaryStringConcatUnitTest.inc':
47
+                return array(
48
+                        2  => 1,
49
+                        6  => 1,
50
+                        9  => 1,
51
+                        12 => 1,
52
+                        19 => 1,
53
+                        20 => 1,
54
+                       );
55
+                break;
56
+            case 'UnnecessaryStringConcatUnitTest.js':
57
+                return array(
58
+                        1  => 1,
59
+                        8  => 1,
60
+                        11 => 1,
61
+                        14 => 1,
62
+                        15 => 1,
63
+                       );
64
+                break;
65
+            default:
66
+                return array();
67
+                break;
68 68
         }
69 69
 
70 70
     }//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='UnnecessaryStringConcatUnitTest.inc')
43
+    public function getErrorList($testFile = 'UnnecessaryStringConcatUnitTest.inc')
44 44
     {
45 45
         switch ($testFile) {
46 46
         case 'UnnecessaryStringConcatUnitTest.inc':
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/Metrics/CyclomaticComplexityUnitTest.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
                 48 => 1,
58 58
                 70 => 1,
59 59
                 71 => 1,
60
-               );
60
+                );
61 61
 
62 62
     }//end getErrorList()
63 63
 
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/Metrics/NestingLevelUnitTest.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
                 48 => 1,
58 58
                 70 => 1,
59 59
                 71 => 1,
60
-               );
60
+                );
61 61
 
62 62
     }//end getErrorList()
63 63
 
Please login to merge, or discard this patch.