Completed
Push — master ( 689ae3...ba1c9f )
by Xaver
13s
created
MO4/Tests/Commenting/PropertyCommentUnitTest.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
                     34 => 1,
60 60
                     37 => 1,
61 61
                     41 => 1,
62
-                   );
62
+                    );
63 63
         }
64 64
 
65 65
         return null;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
      *
45 45
      * @return array(int => int)
46 46
      */
47
-    protected function getErrorList($testFile='')
47
+    protected function getErrorList($testFile = '')
48 48
     {
49 49
         switch ($testFile) {
50 50
         case 'PropertyCommentUnitTest.pass.inc':
Please login to merge, or discard this patch.
MO4/Tests/Strings/VariableInDoubleQuotedStringUnitTest.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
                     9  => 1,
61 61
                     10 => 1,
62 62
                     11 => 1,
63
-                   );
63
+                    );
64 64
         }
65 65
 
66 66
         return null;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
      *
45 45
      * @return array(int => int)
46 46
      */
47
-    protected function getErrorList($testFile='')
47
+    protected function getErrorList($testFile = '')
48 48
     {
49 49
         switch ($testFile) {
50 50
         case 'VariableInDoubleQuotedStringUnitTest.pass.inc':
Please login to merge, or discard this patch.
MO4/Tests/Formatting/AlphabeticalUseStatementsUnitTest.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -57,20 +57,20 @@  discard block
 block discarded – undo
57 57
                     8  => 1,
58 58
                     9  => 1,
59 59
                     12 => 1,
60
-                   );
60
+                    );
61 61
         // Take care, more than one fix will be applied.
62 62
         case 'AlphabeticalUseStatementsUnitTest.fail.2.inc':
63 63
             return array(
64 64
                     6 => 1,
65 65
                     8 => 1,
66
-                   );
66
+                    );
67 67
         case 'AlphabeticalUseStatementsUnitTest.fail.3.inc':
68 68
             return array(
69 69
                     7  => 1,
70 70
                     8  => 1,
71 71
                     10 => 1,
72 72
                     15 => 1,
73
-                   );
73
+                    );
74 74
         case 'AlphabeticalUseStatementsUnitTest.fail.4.inc':
75 75
             return array(
76 76
                     4  => 1,
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
                     17 => 1,
80 80
                     20 => 1,
81 81
                     21 => 1,
82
-                   );
82
+                    );
83 83
         }//end switch
84 84
 
85 85
         return null;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
      *
46 46
      * @return array(int => int)
47 47
      */
48
-    protected function getErrorList($testFile='')
48
+    protected function getErrorList($testFile = '')
49 49
     {
50 50
         switch ($testFile) {
51 51
         case 'AlphabeticalUseStatementsUnitTest.pass.inc':
Please login to merge, or discard this patch.
MO4/Tests/Formatting/UnnecessaryNamespaceUsageUnitTest.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -88,12 +88,12 @@  discard block
 block discarded – undo
88 88
                     46 => 1,
89 89
                     52 => 1,
90 90
                     56 => 1,
91
-                   );
91
+                    );
92 92
         case 'UnnecessaryNamespaceUsageUnitTest.fail.2.inc':
93 93
             return array(
94 94
                     10 => 1,
95 95
                     11 => 1,
96
-                   );
96
+                    );
97 97
         case 'UnnecessaryNamespaceUsageUnitTest.fail.3.inc':
98 98
             return array(
99 99
                     15 => 1,
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
                     22 => 1,
104 104
                     23 => 1,
105 105
                     25 => 3,
106
-                   );
106
+                    );
107 107
         }//end switch
108 108
 
109 109
         return null;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      *
47 47
      * @return array(int => int)
48 48
      */
49
-    protected function getErrorList($testFile='')
49
+    protected function getErrorList($testFile = '')
50 50
     {
51 51
         return array();
52 52
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      *
64 64
      * @return array(int => int)
65 65
      */
66
-    protected function getWarningList($testFile='')
66
+    protected function getWarningList($testFile = '')
67 67
     {
68 68
         switch ($testFile) {
69 69
         case 'UnnecessaryNamespaceUsageUnitTest.pass.1.inc':
Please login to merge, or discard this patch.
MO4/Tests/Formatting/UseArrayShortTagUnitTest.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
                     13 => 1,
60 60
                     15 => 1,
61 61
                     16 => 2,
62
-                   );
62
+                    );
63 63
         }
64 64
 
65 65
         return null;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
      *
46 46
      * @return array(int => int)
47 47
      */
48
-    protected function getErrorList($testFile='')
48
+    protected function getErrorList($testFile = '')
49 49
     {
50 50
         switch ($testFile) {
51 51
         case 'UseArrayShortTagUnitTest.pass.inc':
Please login to merge, or discard this patch.
MO4/Tests/Formatting/ArrayAlignmentUnitTest.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
                     145 => 1,
84 84
                     151 => 2,
85 85
                     155 => 1,
86
-                   );
86
+                    );
87 87
         }//end switch
88 88
 
89 89
         return null;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
      *
45 45
      * @return array(int => int)
46 46
      */
47
-    protected function getErrorList($testFile='')
47
+    protected function getErrorList($testFile = '')
48 48
     {
49 49
         switch ($testFile) {
50 50
         case 'ArrayAlignmentUnitTest.pass.inc':
Please login to merge, or discard this patch.
MO4/Sniffs/Commenting/PropertyCommentSniff.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -46,8 +46,8 @@  discard block
 block discarded – undo
46 46
      * @var array
47 47
      */
48 48
     private $myTokenTypes = array(
49
-                             T_VARIABLE,
50
-                             T_CONST,
49
+                                T_VARIABLE,
50
+                                T_CONST,
51 51
                             );
52 52
 
53 53
 
@@ -82,14 +82,14 @@  discard block
 block discarded – undo
82 82
         $currScope
83 83
     ) {
84 84
         $find   = array(
85
-                   T_COMMENT,
86
-                   T_DOC_COMMENT_CLOSE_TAG,
87
-                   T_CLASS,
88
-                   T_CONST,
89
-                   T_FUNCTION,
90
-                   T_VARIABLE,
91
-                   T_OPEN_TAG,
92
-                  );
85
+                    T_COMMENT,
86
+                    T_DOC_COMMENT_CLOSE_TAG,
87
+                    T_CLASS,
88
+                    T_CONST,
89
+                    T_FUNCTION,
90
+                    T_VARIABLE,
91
+                    T_OPEN_TAG,
92
+                    );
93 93
         $tokens = $phpcsFile->getTokens();
94 94
 
95 95
         // Before even checking the docblocks above the current var/const,
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
         $stackPtr,
82 82
         $currScope
83 83
     ) {
84
-        $find   = array(
84
+        $find = array(
85 85
                    T_COMMENT,
86 86
                    T_DOC_COMMENT_CLOSE_TAG,
87 87
                    T_CLASS,
Please login to merge, or discard this patch.
MO4/Sniffs/Formatting/AlphabeticalUseStatementsSniff.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -58,11 +58,11 @@  discard block
 block discarded – undo
58 58
      * @var array
59 59
      */
60 60
     private $supportedOrderingMethods = [
61
-                                         'dictionary',
62
-                                         'string',
63
-                                         'string',
64
-                                         'string-locale',
65
-                                         'string-case-insensitive',
61
+                                            'dictionary',
62
+                                            'string',
63
+                                            'string',
64
+                                            'string-locale',
65
+                                            'string-case-insensitive',
66 66
                                         ];
67 67
 
68 68
     /**
@@ -189,8 +189,8 @@  discard block
 block discarded – undo
189 189
     private function getUseImport(File $phpcsFile, $stackPtr)
190 190
     {
191 191
         $importTokens = array(
192
-                         T_NS_SEPARATOR,
193
-                         T_STRING,
192
+                            T_NS_SEPARATOR,
193
+                            T_STRING,
194 194
                         );
195 195
 
196 196
         $start  = $phpcsFile->findNext(
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
         return array(
206 206
                 'startPtr' => $start,
207 207
                 'content'  => $import,
208
-               );
208
+                );
209 209
 
210 210
     }//end getUseImport()
211 211
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -193,7 +193,7 @@
 block discarded – undo
193 193
                          T_STRING,
194 194
                         );
195 195
 
196
-        $start  = $phpcsFile->findNext(
196
+        $start = $phpcsFile->findNext(
197 197
             PHP_CodeSniffer_Tokens::$emptyTokens,
198 198
             ($stackPtr + 1),
199 199
             null,
Please login to merge, or discard this patch.
MO4/Sniffs/Formatting/UnnecessaryNamespaceUsageSniff.php 2 patches
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     private $classNameTokens = array(
45 45
                                 T_NS_SEPARATOR,
46 46
                                 T_STRING,
47
-                               );
47
+                                );
48 48
 
49 49
 
50 50
     /**
@@ -75,15 +75,15 @@  discard block
 block discarded – undo
75 75
     public function process(File $phpcsFile, $stackPtr)
76 76
     {
77 77
         $docCommentTags = array(
78
-                           '@param'  => 1,
79
-                           '@return' => 1,
80
-                           '@throws' => 1,
81
-                           '@var'    => 2,
82
-                          );
78
+                            '@param'  => 1,
79
+                            '@return' => 1,
80
+                            '@throws' => 1,
81
+                            '@var'    => 2,
82
+                            );
83 83
         $scanTokens     = array(
84
-                           T_NS_SEPARATOR,
85
-                           T_DOC_COMMENT_OPEN_TAG,
86
-                          );
84
+                            T_NS_SEPARATOR,
85
+                            T_DOC_COMMENT_OPEN_TAG,
86
+                            );
87 87
 
88 88
         $tokens        = $phpcsFile->getTokens();
89 89
         $useStatements = $this->getUseStatements($phpcsFile, 0, ($stackPtr - 1));
@@ -129,8 +129,8 @@  discard block
 block discarded – undo
129 129
                     $next    = ($tag + 1);
130 130
                     $lineEnd = $phpcsFile->findNext(
131 131
                         array(
132
-                         T_DOC_COMMENT_CLOSE_TAG,
133
-                         T_DOC_COMMENT_STAR,
132
+                            T_DOC_COMMENT_CLOSE_TAG,
133
+                            T_DOC_COMMENT_STAR,
134 134
                         ),
135 135
                         $next
136 136
                     );
@@ -224,8 +224,8 @@  discard block
 block discarded – undo
224 224
             );
225 225
             $useEnd         = $phpcsFile->findNext(
226 226
                 array(
227
-                 T_SEMICOLON,
228
-                 T_COMMA,
227
+                    T_SEMICOLON,
228
+                    T_COMMA,
229 229
                 ),
230 230
                 $classNameEnd,
231 231
                 $end
@@ -349,7 +349,7 @@  discard block
 block discarded – undo
349 349
             $data    = array(
350 350
                         $className,
351 351
                         $replacement,
352
-                       );
352
+                        );
353 353
             $fixable = $phpcsFile->addFixableWarning(
354 354
                 $msg,
355 355
                 $startPtr,
@@ -364,7 +364,7 @@  discard block
 block discarded – undo
364 364
             $data    = array(
365 365
                         $className,
366 366
                         $replacement,
367
-                       );
367
+                        );
368 368
             $fixable = $phpcsFile->addFixableWarning(
369 369
                 $msg,
370 370
                 $startPtr,
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
                            '@throws' => 1,
81 81
                            '@var'    => 2,
82 82
                           );
83
-        $scanTokens     = array(
83
+        $scanTokens = array(
84 84
                            T_NS_SEPARATOR,
85 85
                            T_DOC_COMMENT_OPEN_TAG,
86 86
                           );
@@ -216,13 +216,13 @@  discard block
 block discarded – undo
216 216
                 $end,
217 217
                 true
218 218
             );
219
-            $classNameEnd   = $phpcsFile->findNext(
219
+            $classNameEnd = $phpcsFile->findNext(
220 220
                 $this->classNameTokens,
221 221
                 ($classNameStart + 1),
222 222
                 $end,
223 223
                 true
224 224
             );
225
-            $useEnd         = $phpcsFile->findNext(
225
+            $useEnd = $phpcsFile->findNext(
226 226
                 array(
227 227
                  T_SEMICOLON,
228 228
                  T_COMMA,
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
                 $classNameEnd,
231 231
                 $end
232 232
             );
233
-            $aliasNamePtr   = $phpcsFile->findPrevious(
233
+            $aliasNamePtr = $phpcsFile->findPrevious(
234 234
                 PHP_CodeSniffer_Tokens::$emptyTokens,
235 235
                 ($useEnd - 1),
236 236
                 null,
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
         $nameSpace,
335 335
         $startPtr,
336 336
         $endPtr,
337
-        $isDocBlock=false
337
+        $isDocBlock = false
338 338
     ) {
339 339
         $msg     = 'Shorthand possible. Replace "%s" with "%s"';
340 340
         $fixable = false;
@@ -346,7 +346,7 @@  discard block
 block discarded – undo
346 346
         if (array_key_exists($fullClassName, $useStatements) === true) {
347 347
             $replacement = $useStatements[$fullClassName];
348 348
 
349
-            $data    = array(
349
+            $data = array(
350 350
                         $className,
351 351
                         $replacement,
352 352
                        );
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
         } else if (strpos($fullClassName, $nameSpace) === 0) {
362 362
             $replacement = substr($fullClassName, strlen($nameSpace));
363 363
 
364
-            $data    = array(
364
+            $data = array(
365 365
                         $className,
366 366
                         $replacement,
367 367
                        );
Please login to merge, or discard this patch.