@@ -27,7 +27,7 @@ discard block |
||
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 |
||
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) { |
@@ -25,7 +25,7 @@ discard block |
||
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 |
||
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') { |
@@ -25,7 +25,7 @@ discard block |
||
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 |
||
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) { |
@@ -27,7 +27,7 @@ discard block |
||
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 |
||
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) { |
@@ -29,14 +29,14 @@ discard block |
||
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 |
||
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]))) { |
@@ -30,14 +30,14 @@ discard block |
||
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 |
||
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) { |
@@ -25,7 +25,7 @@ discard block |
||
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 |
||
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) { |
@@ -31,9 +31,9 @@ |
||
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() |
@@ -90,7 +90,7 @@ discard block |
||
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 |
||
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 | } |