Completed
Push — master ( 4b0cae...92d247 )
by Pádraic
02:52
created
src/Mutator/ReturnValue/IntegerValue.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     public static function getMutation(array &$tokens, $index)
28 28
     {
29 29
         $tokenCount = count($tokens);
30
-        for ($i=$index+1; $i < $tokenCount; $i++) {
30
+        for ($i = $index+1; $i < $tokenCount; $i++) {
31 31
             if (is_array($tokens[$i]) && $tokens[$i][0] == T_WHITESPACE) {
32 32
                 continue;
33 33
             } elseif (is_array($tokens[$i]) && $tokens[$i][0] == T_LNUMBER) {
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         if (is_array($t) && $t[0] == T_RETURN) {
53 53
             $has = false;
54 54
             $tokenCount = count($tokens);
55
-            for ($i=$index+1; $i < $tokenCount; $i++) {
55
+            for ($i = $index+1; $i < $tokenCount; $i++) {
56 56
                 if (is_array($tokens[$i]) && $tokens[$i][0] == T_WHITESPACE) {
57 57
                     continue;
58 58
                 } elseif (is_array($tokens[$i]) && $tokens[$i][0] == T_LNUMBER) {
Please login to merge, or discard this patch.
src/Mutator/ReturnValue/This.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     public static function getMutation(array &$tokens, $index)
26 26
     {
27 27
         $tokenCount = count($tokens);
28
-        for ($i=$index+1; $i < $tokenCount; $i++) {
28
+        for ($i = $index+1; $i < $tokenCount; $i++) {
29 29
             if (is_array($tokens[$i]) && $tokens[$i][0] == T_WHITESPACE) {
30 30
                 continue;
31 31
             } elseif (is_array($tokens[$i]) && $tokens[$i][0] == T_VARIABLE && $tokens[$i][1] == '$this') {
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
             $hasThis = false;
46 46
             // effectively, we look for 'return $this;'. Anything else in there and we get out.
47 47
             $tokenCount = count($tokens);
48
-            for ($i=$index+1; $i < $tokenCount; $i++) {
48
+            for ($i = $index+1; $i < $tokenCount; $i++) {
49 49
                 if (is_array($tokens[$i]) && $tokens[$i][0] == T_WHITESPACE) {
50 50
                     continue;
51 51
                 } elseif (is_array($tokens[$i]) && $tokens[$i][0] == T_VARIABLE && $tokens[$i][1] == '$this') {
Please login to merge, or discard this patch.
src/Mutator/ReturnValue/IntegerNegation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     public static function getMutation(array &$tokens, $index)
26 26
     {
27 27
         $tokenCount = count($tokens);
28
-        for ($i=$index+1; $i < $tokenCount; $i++) {
28
+        for ($i = $index+1; $i < $tokenCount; $i++) {
29 29
             if (is_array($tokens[$i]) && $tokens[$i][0] == T_WHITESPACE) {
30 30
                 continue;
31 31
             } elseif (is_array($tokens[$i]) && $tokens[$i][0] == T_LNUMBER) {
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
         if (is_array($t) && $t[0] == T_RETURN) {
56 56
             $has = false;
57 57
             $tokenCount = count($tokens);
58
-            for ($i=$index+1; $i < $tokenCount; $i++) {
58
+            for ($i = $index+1; $i < $tokenCount; $i++) {
59 59
                 if (is_array($tokens[$i]) && $tokens[$i][0] == T_WHITESPACE) {
60 60
                     continue;
61 61
                 } elseif (is_array($tokens[$i]) && $tokens[$i][0] == T_LNUMBER && $tokens[$i][1] != 0) {
Please login to merge, or discard this patch.
src/Mutator/ReturnValue/FloatValue.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     public static function getMutation(array &$tokens, $index)
28 28
     {
29 29
         $tokenCount = count($tokens);
30
-        for ($i=$index+1; $i < $tokenCount; $i++) {
30
+        for ($i = $index+1; $i < $tokenCount; $i++) {
31 31
             if (is_array($tokens[$i]) && $tokens[$i][0] == T_WHITESPACE) {
32 32
                 continue;
33 33
             } elseif (is_array($tokens[$i]) && $tokens[$i][0] == T_DNUMBER) {
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         if (is_array($t) && $t[0] == T_RETURN) {
54 54
             $has = false;
55 55
             $tokenCount = count($tokens);
56
-            for ($i=$index+1; $i < $tokenCount; $i++) {
56
+            for ($i = $index+1; $i < $tokenCount; $i++) {
57 57
                 if (is_array($tokens[$i]) && $tokens[$i][0] == T_WHITESPACE) {
58 58
                     continue;
59 59
                 } elseif (is_array($tokens[$i]) && $tokens[$i][0] == T_DNUMBER) {
Please login to merge, or discard this patch.
src/Mutator/ReturnValue/FunctionCall.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,14 +29,14 @@  discard block
 block discarded – undo
29 29
         $replace = [];
30 30
         $last = null;
31 31
         $tokenCount = count($tokens);
32
-        for ($i=$index+1; $i < $tokenCount; $i++) {
32
+        for ($i = $index+1; $i < $tokenCount; $i++) {
33 33
             if (is_array($tokens[$i]) && $tokens[$i][0] == T_WHITESPACE) {
34 34
                 continue;
35 35
             } elseif (is_array($tokens[$i]) && $tokens[$i][0] == T_STRING && function_exists($tokens[$i][1])) {
36 36
                 // collect statement tokens (skipping one whitespace after 'return')
37
-                for ($j=$index+2; $j < $tokenCount; $j++) {
37
+                for ($j = $index+2; $j < $tokenCount; $j++) {
38 38
                     if (!is_array($tokens[$j]) && $tokens[$j] == ';') {
39
-                        $last = $j - 1;
39
+                        $last = $j-1;
40 40
                         break;
41 41
                     }
42 42
                     $replace[$j] = $tokens[$j];
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
         if (is_array($t) && $t[0] == T_RETURN) {
71 71
             $has = false;
72 72
             $tokenCount = count($tokens);
73
-            for ($i=$index+1; $i < $tokenCount; $i++) {
73
+            for ($i = $index+1; $i < $tokenCount; $i++) {
74 74
                 if (is_array($tokens[$i]) && $tokens[$i][0] == T_WHITESPACE) {
75 75
                     continue;
76 76
                 } elseif (is_array($tokens[$i]) && ($tokens[$i][0] == T_STRING && function_exists($tokens[$i][1]))) {
Please login to merge, or discard this patch.
src/Mutator/ReturnValue/NewObject.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,14 +30,14 @@  discard block
 block discarded – undo
30 30
         $replace = [];
31 31
         $last = null;
32 32
         $tokenCount = count($tokens);
33
-        for ($i=$index+1; $i < $tokenCount; $i++) {
33
+        for ($i = $index+1; $i < $tokenCount; $i++) {
34 34
             if (is_array($tokens[$i]) && $tokens[$i][0] == T_WHITESPACE) {
35 35
                 continue;
36 36
             } elseif (is_array($tokens[$i]) && $tokens[$i][0] == T_NEW) {
37 37
                 // collect statement tokens (skipping one whitespace after 'return')
38
-                for ($j=$index+2; $j < $tokenCount; $j++) {
38
+                for ($j = $index+2; $j < $tokenCount; $j++) {
39 39
                     if (!is_array($tokens[$j]) && $tokens[$j] == ';') {
40
-                        $last = $j - 1;
40
+                        $last = $j-1;
41 41
                         break;
42 42
                     }
43 43
                     $replace[$j] = $tokens[$j];
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         if (is_array($t) && $t[0] == T_RETURN) {
72 72
             $has = false;
73 73
             $tokenCount = count($tokens);
74
-            for ($i=$index+1; $i < $tokenCount; $i++) {
74
+            for ($i = $index+1; $i < $tokenCount; $i++) {
75 75
                 if (is_array($tokens[$i]) && $tokens[$i][0] == T_WHITESPACE) {
76 76
                     continue;
77 77
                 } elseif (is_array($tokens[$i]) && $tokens[$i][0] == T_NEW) {
Please login to merge, or discard this patch.
src/Mutator/ReturnValue/FloatNegation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     public static function getMutation(array &$tokens, $index)
26 26
     {
27 27
         $tokenCount = count($tokens);
28
-        for ($i=$index+1; $i < $tokenCount; $i++) {
28
+        for ($i = $index+1; $i < $tokenCount; $i++) {
29 29
             if (is_array($tokens[$i]) && $tokens[$i][0] == T_WHITESPACE) {
30 30
                 continue;
31 31
             } elseif (is_array($tokens[$i]) && $tokens[$i][0] == T_DNUMBER) {
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
         if (is_array($t) && $t[0] == T_RETURN) {
56 56
             $has = false;
57 57
             $tokenCount = count($tokens);
58
-            for ($i=$index+1; $i < $tokenCount; $i++) {
58
+            for ($i = $index+1; $i < $tokenCount; $i++) {
59 59
                 if (is_array($tokens[$i]) && $tokens[$i][0] == T_WHITESPACE) {
60 60
                     continue;
61 61
                 } elseif (is_array($tokens[$i]) && $tokens[$i][0] == T_DNUMBER && $tokens[$i][1] != 0) {
Please login to merge, or discard this patch.
src/Utility/Performance.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,9 +31,9 @@
 block discarded – undo
31 31
     public static function getTime()
32 32
     {
33 33
         if (empty(self::$endTime)) {
34
-            return microtime(true) - self::$startTime;
34
+            return microtime(true)-self::$startTime;
35 35
         }
36
-        return self::$endTime - self::$startTime;
36
+        return self::$endTime-self::$startTime;
37 37
     }
38 38
 
39 39
     public static function getTimeString()
Please login to merge, or discard this patch.
src/Utility/CoverageData.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         $file = realpath($file);
91 91
         if (!$this->hasTestClasses($file, $line)) {
92 92
             throw new NoCoveringTestsException(
93
-                'Line '.$line.' of '.$file.' has no associated test classes per '
93
+                'Line ' . $line . ' of ' . $file . ' has no associated test classes per '
94 94
                 . 'the coverage report'
95 95
             );
96 96
         }
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 
116 116
         if (!$this->hasTestClasses($file, $line)) {
117 117
             throw new NoCoveringTestsException(
118
-                'Line '.$line.' of '.$file.' has no associated test classes per '
118
+                'Line ' . $line . ' of ' . $file . ' has no associated test classes per '
119 119
                 . 'the coverage report'
120 120
             );
121 121
         }
Please login to merge, or discard this patch.