Passed
Push — master ( f17ae0...2927c7 )
by Michael
02:02
created
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/ArrayAlignmentSniff.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,9 +38,9 @@
 block discarded – undo
38 38
      * @var array
39 39
      */
40 40
     protected  $arrayTokens = array(
41
-                               T_ARRAY,
42
-                               T_OPEN_SHORT_ARRAY,
43
-                              );
41
+                                T_ARRAY,
42
+                                T_OPEN_SHORT_ARRAY,
43
+                                );
44 44
 
45 45
 
46 46
     /**
Please login to merge, or discard this patch.
tests/bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     ',',
29 29
     array_filter(
30 30
         $standards,
31
-        function ($v) use ($myStandardName) {
31
+        function($v) use ($myStandardName) {
32 32
             return $v !== $myStandardName;
33 33
         }
34 34
     )
Please login to merge, or discard this patch.
MO4/Sniffs/Formatting/UnnecessaryNamespaceUsageSniff.php 2 patches
Indentation   +16 added lines, -16 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
@@ -348,8 +348,8 @@  discard block
 block discarded – undo
348 348
             $replacement = $useStatements[$fullClassName];
349 349
 
350 350
             $data = array(
351
-                     $className,
352
-                     $replacement,
351
+                        $className,
352
+                        $replacement,
353 353
                     );
354 354
 
355 355
             $fixable = $phpcsFile->addFixableWarning(
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
             $data    = array(
367 367
                         $className,
368 368
                         $replacement,
369
-                       );
369
+                        );
370 370
             $fixable = $phpcsFile->addFixableWarning(
371 371
                 $msg,
372 372
                 $startPtr,
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 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
         $code    = 'UnnecessaryNamespaceUsage';
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
         } else if (strpos($fullClassName, $namespace) === 0) {
364 364
             $replacement = substr($fullClassName, strlen($namespace));
365 365
 
366
-            $data    = array(
366
+            $data = array(
367 367
                         $className,
368 368
                         $replacement,
369 369
                        );
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
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
                     9  => 1,
63 63
                     10 => 1,
64 64
                     11 => 1,
65
-                   );
65
+                    );
66 66
         }
67 67
 
68 68
         throw new RuntimeException("Testfile {$testFile} in ".__DIR__." is not handled by ".__CLASS__);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
      * @return array<int, int>
47 47
      * @throws RuntimeException
48 48
      */
49
-    protected function getErrorList($testFile='')
49
+    protected function getErrorList($testFile = '')
50 50
     {
51 51
         switch ($testFile) {
52 52
         case 'VariableInDoubleQuotedStringUnitTest.pass.inc':
Please login to merge, or discard this patch.
MO4/Tests/Commenting/PropertyCommentUnitTest.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
                     34 => 1,
62 62
                     37 => 1,
63 63
                     41 => 1,
64
-                   );
64
+                    );
65 65
         }
66 66
 
67 67
         throw new RuntimeException("Testfile {$testFile} in ".__DIR__." is not handled by ".__CLASS__);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
      * @return array<int, int>
47 47
      * @throws RuntimeException
48 48
      */
49
-    protected function getErrorList($testFile='')
49
+    protected function getErrorList($testFile = '')
50 50
     {
51 51
         switch ($testFile) {
52 52
         case 'PropertyCommentUnitTest.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
@@ -59,20 +59,20 @@  discard block
 block discarded – undo
59 59
                     8  => 1,
60 60
                     9  => 1,
61 61
                     12 => 1,
62
-                   );
62
+                    );
63 63
         // Take care, more than one fix will be applied.
64 64
         case 'AlphabeticalUseStatementsUnitTest.fail.2.inc':
65 65
             return array(
66 66
                     6 => 1,
67 67
                     8 => 1,
68
-                   );
68
+                    );
69 69
         case 'AlphabeticalUseStatementsUnitTest.fail.3.inc':
70 70
             return array(
71 71
                     7  => 1,
72 72
                     8  => 1,
73 73
                     10 => 1,
74 74
                     15 => 1,
75
-                   );
75
+                    );
76 76
         case 'AlphabeticalUseStatementsUnitTest.fail.4.inc':
77 77
             return array(
78 78
                     4  => 1,
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
                     17 => 1,
82 82
                     20 => 1,
83 83
                     21 => 1,
84
-                   );
84
+                    );
85 85
         }//end switch
86 86
 
87 87
         throw new RuntimeException("Testfile {$testFile} in ".__DIR__." is not handled by ".__CLASS__);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
      * @return array<int, int>
48 48
      * @throws RuntimeException
49 49
      */
50
-    protected function getErrorList($testFile='')
50
+    protected function getErrorList($testFile = '')
51 51
     {
52 52
         switch ($testFile) {
53 53
         case 'AlphabeticalUseStatementsUnitTest.pass.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
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
                     13 => 1,
62 62
                     15 => 1,
63 63
                     16 => 2,
64
-                   );
64
+                    );
65 65
         }
66 66
 
67 67
         throw new RuntimeException("Testfile {$testFile} in ".__DIR__." is not handled by ".__CLASS__);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
      * @return array<int, int>
48 48
      * @throws RuntimeException
49 49
      */
50
-    protected function getErrorList($testFile='')
50
+    protected function getErrorList($testFile = '')
51 51
     {
52 52
         switch ($testFile) {
53 53
         case 'UseArrayShortTagUnitTest.pass.inc':
Please login to merge, or discard this patch.