Passed
Pull Request — master (#49)
by Michael
01:46
created
MO4/Tests/Commenting/PropertyCommentUnitTest.php 1 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 1 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 1 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 1 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 1 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 1 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 1 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 1 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 1 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.