Completed
Push — master ( 8cd077 )
by Tomáš
09:25
created
src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.php 3 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -79,20 +79,20 @@
 block discarded – undo
79 79
                     46 => 1,
80 80
                     47 => 1,
81 81
                     48 => 1,
82
-                   );
82
+                    );
83 83
             break;
84 84
         case 'DisallowTabIndentUnitTest.js':
85 85
             return array(
86 86
                     3 => 1,
87 87
                     5 => 1,
88 88
                     6 => 1,
89
-                   );
89
+                    );
90 90
             break;
91 91
         case 'DisallowTabIndentUnitTest.css':
92 92
             return array(
93 93
                     1 => 1,
94 94
                     2 => 1,
95
-                   );
95
+                    );
96 96
             break;
97 97
         default:
98 98
             return array();
Please login to merge, or discard this patch.
Switch Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -43,30 +43,30 @@
 block discarded – undo
43 43
     public function getWarningList($testFile='')
44 44
     {
45 45
         switch ($testFile) {
46
-        case 'DuplicateClassNameUnitTest.1.inc':
47
-            return array(
48
-                    6 => 1,
49
-                    7 => 1,
50
-                   );
51
-            break;
52
-        case 'DuplicateClassNameUnitTest.2.inc':
53
-            return array(
54
-                    2 => 1,
55
-                    3 => 1,
56
-                   );
57
-            break;
58
-        case 'DuplicateClassNameUnitTest.5.inc':
59
-            return array(
60
-                    3 => 1,
61
-                    7 => 1,
62
-                   );
63
-            break;
64
-        case 'DuplicateClassNameUnitTest.6.inc':
65
-            return array(10 => 1);
66
-            break;
67
-        default:
68
-            return array();
69
-            break;
46
+            case 'DuplicateClassNameUnitTest.1.inc':
47
+                return array(
48
+                        6 => 1,
49
+                        7 => 1,
50
+                       );
51
+                break;
52
+            case 'DuplicateClassNameUnitTest.2.inc':
53
+                return array(
54
+                        2 => 1,
55
+                        3 => 1,
56
+                       );
57
+                break;
58
+            case 'DuplicateClassNameUnitTest.5.inc':
59
+                return array(
60
+                        3 => 1,
61
+                        7 => 1,
62
+                       );
63
+                break;
64
+            case 'DuplicateClassNameUnitTest.6.inc':
65
+                return array(10 => 1);
66
+                break;
67
+            default:
68
+                return array();
69
+                break;
70 70
         }//end switch
71 71
 
72 72
     }//end getWarningList()
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
      *
56 56
      * @return array<int, int>
57 57
      */
58
-    public function getWarningList($testFile='')
58
+    public function getWarningList($testFile = '')
59 59
     {
60 60
         switch ($testFile) {
61 61
         case 'DuplicateClassNameUnitTest.1.inc':
Please login to merge, or discard this patch.
src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.6.inc 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 class Test{
3 3
     public function testOne(){
4
-     ?>
4
+        ?>
5 5
      <p>some html here</p>
6 6
     <?php 
7
-   }
7
+    }
8 8
 }
9 9
 
10 10
 class Test{
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2
-class Test{
3
-    public function testOne(){
2
+class Test {
3
+    public function testOne() {
4 4
      ?>
5 5
      <p>some html here</p>
6 6
     <?php 
7 7
    }
8 8
 }
9 9
 
10
-class Test{
10
+class Test {
11 11
 
12 12
 }
Please login to merge, or discard this patch.
src/Standards/PEAR/Sniffs/Files/IncludingFileSniff.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/PEAR/Sniffs/WhiteSpace/ScopeClosingBraceSniff.php 2 patches
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -24,11 +24,11 @@  discard block
 block discarded – undo
24 24
     public $indent = 4;
25 25
 
26 26
 
27
-     /**
28
-      * Returns an array of tokens this test wants to listen for.
29
-      *
30
-      * @return int[]
31
-      */
27
+        /**
28
+         * Returns an array of tokens this test wants to listen for.
29
+         *
30
+         * @return int[]
31
+         */
32 32
     public function register()
33 33
     {
34 34
         return Tokens::$scopeOpeners;
@@ -95,9 +95,9 @@  discard block
 block discarded – undo
95 95
         // Check that the closing brace is on it's own line.
96 96
         $lastContent = $phpcsFile->findPrevious(
97 97
             array(
98
-             T_WHITESPACE,
99
-             T_INLINE_HTML,
100
-             T_OPEN_TAG,
98
+                T_WHITESPACE,
99
+                T_INLINE_HTML,
100
+                T_OPEN_TAG,
101 101
             ),
102 102
             ($scopeEnd - 1),
103 103
             $scopeStart,
@@ -146,9 +146,9 @@  discard block
 block discarded – undo
146 146
             if ($braceIndent !== $expectedIndent) {
147 147
                 $error = 'Case breaking statement indented incorrectly; expected %s spaces, found %s';
148 148
                 $data  = array(
149
-                          $expectedIndent,
150
-                          $braceIndent,
151
-                         );
149
+                            $expectedIndent,
150
+                            $braceIndent,
151
+                            );
152 152
                 $fix   = $phpcsFile->addFixableError($error, $scopeEnd, 'BreakIndent', $data);
153 153
             }
154 154
         } else {
@@ -156,9 +156,9 @@  discard block
 block discarded – undo
156 156
             if ($braceIndent !== $expectedIndent) {
157 157
                 $error = 'Closing brace indented incorrectly; expected %s spaces, found %s';
158 158
                 $data  = array(
159
-                          $expectedIndent,
160
-                          $braceIndent,
161
-                         );
159
+                            $expectedIndent,
160
+                            $braceIndent,
161
+                            );
162 162
                 $fix   = $phpcsFile->addFixableError($error, $scopeEnd, 'Indent', $data);
163 163
             }
164 164
         }//end if
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
                           $expectedIndent,
164 164
                           $braceIndent,
165 165
                          );
166
-                $fix   = $phpcsFile->addFixableError($error, $scopeEnd, 'BreakIndent', $data);
166
+                $fix = $phpcsFile->addFixableError($error, $scopeEnd, 'BreakIndent', $data);
167 167
             }
168 168
         } else {
169 169
             $expectedIndent = ($startColumn - 1);
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
                           $expectedIndent,
174 174
                           $braceIndent,
175 175
                          );
176
-                $fix   = $phpcsFile->addFixableError($error, $scopeEnd, 'Indent', $data);
176
+                $fix = $phpcsFile->addFixableError($error, $scopeEnd, 'Indent', $data);
177 177
             }
178 178
         }//end if
179 179
 
Please login to merge, or discard this patch.
src/Standards/PEAR/Sniffs/WhiteSpace/ObjectOperatorIndentSniff.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -144,9 +144,9 @@
 block discarded – undo
144 144
                     if ($foundIndent !== $requiredIndent) {
145 145
                         $error = 'Object operator not indented correctly; expected %s spaces but found %s';
146 146
                         $data  = array(
147
-                                  $requiredIndent,
148
-                                  $foundIndent,
149
-                                 );
147
+                                    $requiredIndent,
148
+                                    $foundIndent,
149
+                                    );
150 150
 
151 151
                         $fix = $phpcsFile->addFixableError($error, $next, 'Incorrect', $data);
152 152
                         if ($fix === true) {
Please login to merge, or discard this patch.
src/Standards/PEAR/Sniffs/ControlStructures/ControlSignatureSniff.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/PEAR/Sniffs/NamingConventions/ValidVariableNameSniff.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -74,9 +74,9 @@
 block discarded – undo
74 74
         if ($isPublic === true && $scopeSpecified === true && $memberName{0} === '_') {
75 75
             $error = '%s member variable "%s" must not be prefixed with an underscore';
76 76
             $data  = array(
77
-                      ucfirst($scope),
78
-                      $memberName,
79
-                     );
77
+                        ucfirst($scope),
78
+                        $memberName,
79
+                        );
80 80
             $phpcsFile->addError($error, $stackPtr, 'PublicUnderscore', $data);
81 81
             return;
82 82
         }
Please login to merge, or discard this patch.
src/Standards/PEAR/Sniffs/Classes/ClassDeclarationSniff.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
                 T_CLASS,
50 50
                 T_INTERFACE,
51 51
                 T_TRAIT,
52
-               );
52
+                );
53 53
 
54 54
     }//end register()
55 55
 
@@ -99,10 +99,10 @@  discard block
 block discarded – undo
99 99
             if ($braceLine > ($classLine + 1)) {
100 100
                 $error = 'Opening brace of a %s must be on the line following the %s declaration; found %s line(s)';
101 101
                 $data  = array(
102
-                          $tokens[$stackPtr]['content'],
103
-                          $tokens[$stackPtr]['content'],
104
-                          ($braceLine - $classLine - 1),
105
-                         );
102
+                            $tokens[$stackPtr]['content'],
103
+                            $tokens[$stackPtr]['content'],
104
+                            ($braceLine - $classLine - 1),
105
+                            );
106 106
                 $fix   = $phpcsFile->addFixableError($error, $curlyBrace, 'OpenBraceWrongLine', $data);
107 107
                 if ($fix === true) {
108 108
                     $phpcsFile->fixer->beginChangeset();
@@ -142,9 +142,9 @@  discard block
 block discarded – undo
142 142
             if ($spaces !== $expected) {
143 143
                 $error = 'Expected %s spaces before opening brace; %s found';
144 144
                 $data  = array(
145
-                          $expected,
146
-                          $spaces,
147
-                         );
145
+                            $expected,
146
+                            $spaces,
147
+                            );
148 148
 
149 149
                 $fix = $phpcsFile->addFixableError($error, $curlyBrace, 'SpaceBeforeBrace', $data);
150 150
                 if ($fix === true) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
103 103
                           $tokens[$stackPtr]['content'],
104 104
                           ($braceLine - $classLine - 1),
105 105
                          );
106
-                $fix   = $phpcsFile->addFixableError($error, $curlyBrace, 'OpenBraceWrongLine', $data);
106
+                $fix = $phpcsFile->addFixableError($error, $curlyBrace, 'OpenBraceWrongLine', $data);
107 107
                 if ($fix === true) {
108 108
                     $phpcsFile->fixer->beginChangeset();
109 109
                     for ($i = ($curlyBrace - 1); $i > $lastContent; $i--) {
Please login to merge, or discard this patch.
src/Standards/PEAR/Tests/Files/IncludingFileUnitTest.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.