Completed
Branch master (d87ed9)
by Tomáš
07:16
created
Standards/Generic/Tests/CodeAnalysis/ForLoopShouldBeWhileLoopUnitTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
         return array(
60 60
                 6  => 1,
61 61
                 10 => 1,
62
-               );
62
+                );
63 63
 
64 64
     }//end getWarningList()
65 65
 
Please login to merge, or discard this patch.
Standards/Generic/Tests/CodeAnalysis/UselessOverridingMethodUnitTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
         return array(
60 60
                 4  => 1,
61 61
                 16 => 1,
62
-               );
62
+                );
63 63
 
64 64
     }//end getWarningList()
65 65
 
Please login to merge, or discard this patch.
Standards/Generic/Tests/CodeAnalysis/UnusedFunctionParameterUnitTest.inc 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 
11 11
 function bar($a, $b) {
12 12
     $x = $b;
13
-    for ($i = 0; $i <$a; $i++) {
13
+    for ($i = 0; $i < $a; $i++) {
14 14
         $x += $a * $i;
15 15
     }
16 16
     return $x;
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 BAZ
38 38
 }
39 39
 
40
-function foo( $parameter ) {
40
+function foo($parameter) {
41 41
     $wango = <<<HERE
42 42
 1 Must be a HEREdoc of at least one line
43 43
 HERE;
@@ -55,14 +55,14 @@  discard block
 block discarded – undo
55 55
 HERE;
56 56
 }
57 57
 
58
-function foo( $parameter ) {
58
+function foo($parameter) {
59 59
     return <<<HTML
60 60
 <?xml version="1.0"?>
61 61
 <value>$parameter</value>
62 62
 HTML;
63 63
 }
64 64
 
65
-print foo( 'PARAMETER' );
65
+print foo('PARAMETER');
66 66
 print "\n";
67 67
 
68 68
 function foo($bar)
Please login to merge, or discard this patch.
Generic/Tests/CodeAnalysis/ForLoopWithTestFunctionCallUnitTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
         return array(
60 60
                 4  => 1,
61 61
                 13 => 1,
62
-               );
62
+                );
63 63
 
64 64
     }//end getWarningList()
65 65
 
Please login to merge, or discard this patch.
CodeSniffer/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.php 3 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
                     48 => 1,
62 62
                     70 => 1,
63 63
                     71 => 1,
64
-                   );
64
+                    );
65 65
         break;
66 66
         case 'LowerCaseConstantUnitTest.js':
67 67
             return array(
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
                     12 => 1,
74 74
                     13 => 1,
75 75
                     14 => 1,
76
-                   );
76
+                    );
77 77
             break;
78 78
         default:
79 79
             return array();
Please login to merge, or discard this patch.
Switch Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -45,39 +45,39 @@
 block discarded – undo
45 45
     public function getErrorList($testFile='LowerCaseConstantUnitTest.inc')
46 46
     {
47 47
         switch ($testFile) {
48
-        case 'LowerCaseConstantUnitTest.inc':
49
-            return array(
50
-                    7  => 1,
51
-                    10 => 1,
52
-                    15 => 1,
53
-                    16 => 1,
54
-                    23 => 1,
55
-                    26 => 1,
56
-                    31 => 1,
57
-                    32 => 1,
58
-                    39 => 1,
59
-                    42 => 1,
60
-                    47 => 1,
61
-                    48 => 1,
62
-                    70 => 1,
63
-                    71 => 1,
64
-                   );
65
-        break;
66
-        case 'LowerCaseConstantUnitTest.js':
67
-            return array(
68
-                    2  => 1,
69
-                    3  => 1,
70
-                    4  => 1,
71
-                    7  => 1,
72
-                    8  => 1,
73
-                    12 => 1,
74
-                    13 => 1,
75
-                    14 => 1,
76
-                   );
77
-            break;
78
-        default:
79
-            return array();
48
+            case 'LowerCaseConstantUnitTest.inc':
49
+                return array(
50
+                        7  => 1,
51
+                        10 => 1,
52
+                        15 => 1,
53
+                        16 => 1,
54
+                        23 => 1,
55
+                        26 => 1,
56
+                        31 => 1,
57
+                        32 => 1,
58
+                        39 => 1,
59
+                        42 => 1,
60
+                        47 => 1,
61
+                        48 => 1,
62
+                        70 => 1,
63
+                        71 => 1,
64
+                       );
80 65
             break;
66
+            case 'LowerCaseConstantUnitTest.js':
67
+                return array(
68
+                        2  => 1,
69
+                        3  => 1,
70
+                        4  => 1,
71
+                        7  => 1,
72
+                        8  => 1,
73
+                        12 => 1,
74
+                        13 => 1,
75
+                        14 => 1,
76
+                       );
77
+                break;
78
+            default:
79
+                return array();
80
+                break;
81 81
         }
82 82
 
83 83
     }//end getErrorList()
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
      *
43 43
      * @return array<int, int>
44 44
      */
45
-    public function getErrorList($testFile='LowerCaseConstantUnitTest.inc')
45
+    public function getErrorList($testFile = 'LowerCaseConstantUnitTest.inc')
46 46
     {
47 47
         switch ($testFile) {
48 48
         case 'LowerCaseConstantUnitTest.inc':
Please login to merge, or discard this patch.
CodeSniffer/Standards/Generic/Tests/PHP/ForbiddenFunctionsUnitTest.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,10 +43,10 @@
 block discarded – undo
43 43
     public function getErrorList()
44 44
     {
45 45
         $errors = array(
46
-                   2 => 1,
47
-                   4 => 1,
48
-                   6 => 1,
49
-                  );
46
+                    2 => 1,
47
+                    4 => 1,
48
+                    6 => 1,
49
+                    );
50 50
 
51 51
         return $errors;
52 52
 
Please login to merge, or discard this patch.
CodeSniffer/Standards/Generic/Tests/PHP/LowerCaseKeywordUnitTest.inc 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 For ($var As $var) { Exit; }
14 14
 If ($a AND $b OR $c XOR $d) { Die; } ElseIf { } Else
15 15
 GOTO a;
16
-function (Array $a) {}
16
+function(Array $a) {}
17 17
 const PRIVATE;
18 18
 HttpStatus::CONTINUE;
19 19
 function
Please login to merge, or discard this patch.
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,15 +4,17 @@
 block discarded – undo
4 4
 abstract public private protected function whatever() {}
5 5
 const array()
6 6
 for ($var as $var) { exit; }
7
-if ($a and $b or $c xor $d) { die; } elseif { } else
8
-goto a;
7
+if ($a and $b or $c xor $d) { die; } elseif { } else {
8
+    goto a;
9
+}
9 10
 
10 11
 Class Something EXTENDS SomethingElse implementS Whatever
11 12
 Abstract Public Private Protected function whatever() {}
12 13
 CONST array()
13 14
 For ($var As $var) { Exit; }
14
-If ($a AND $b OR $c XOR $d) { Die; } ElseIf { } Else
15
-GOTO a;
15
+If ($a AND $b OR $c XOR $d) { Die; } ElseIf { } Else {
16
+    GOTO a;
17
+}
16 18
 function (Array $a) {}
17 19
 const PRIVATE;
18 20
 HttpStatus::CONTINUE;
Please login to merge, or discard this patch.
Standards/Generic/Tests/PHP/CharacterBeforePHPOpeningTagUnitTest.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
         case 'CharacterBeforePHPOpeningTagUnitTest.1.inc':
47 47
             return array(
48 48
                     2 => 1,
49
-                   );
49
+                    );
50 50
             break;
51 51
         default:
52 52
             return array();
Please login to merge, or discard this patch.
Switch Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -43,14 +43,14 @@
 block discarded – undo
43 43
     public function getErrorList($testFile='')
44 44
     {
45 45
         switch ($testFile) {
46
-        case 'CharacterBeforePHPOpeningTagUnitTest.1.inc':
47
-            return array(
48
-                    2 => 1,
49
-                   );
50
-            break;
51
-        default:
52
-            return array();
53
-            break;
46
+            case 'CharacterBeforePHPOpeningTagUnitTest.1.inc':
47
+                return array(
48
+                        2 => 1,
49
+                       );
50
+                break;
51
+            default:
52
+                return array();
53
+                break;
54 54
         }//end switch
55 55
 
56 56
     }//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 'CharacterBeforePHPOpeningTagUnitTest.1.inc':
Please login to merge, or discard this patch.
CodeSniffer/Standards/Generic/Tests/PHP/SAPIUsageUnitTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
     {
43 43
         return array(
44 44
                 2 => 1,
45
-               );
45
+                );
46 46
 
47 47
     }//end getErrorList()
48 48
 
Please login to merge, or discard this patch.