@@ -548,7 +548,7 @@ |
||
548 | 548 | } |
549 | 549 | |
550 | 550 | if ($fileEndsWithNewLine) { |
551 | - unset($result[count($result)-1]); |
|
551 | + unset($result[count($result) - 1]); |
|
552 | 552 | } |
553 | 553 | |
554 | 554 | return $result; |
@@ -673,7 +673,7 @@ |
||
673 | 673 | |
674 | 674 | return sprintf( |
675 | 675 | '%01.2F', |
676 | - pow($ccn, 2) * pow(1 - $coverage/100, 3) + $ccn |
|
676 | + pow($ccn, 2) * pow(1 - $coverage / 100, 3) + $ccn |
|
677 | 677 | ); |
678 | 678 | } |
679 | 679 | } |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | $report->getNumTestedMethods(), |
69 | 69 | $report->getNumMethods() |
70 | 70 | ); |
71 | - $colors['lines'] = $this->getCoverageColor( |
|
71 | + $colors['lines'] = $this->getCoverageColor( |
|
72 | 72 | $report->getNumExecutedLines(), |
73 | 73 | $report->getNumExecutableLines() |
74 | 74 | ); |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | continue; |
143 | 143 | } |
144 | 144 | |
145 | - $classes = $item->getClassesAndTraits(); |
|
145 | + $classes = $item->getClassesAndTraits(); |
|
146 | 146 | |
147 | 147 | foreach ($classes as $className => $class) { |
148 | 148 | $classStatements = 0; |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | |
200 | 200 | $output .= PHP_EOL . $fullQualifiedPath . PHP_EOL |
201 | 201 | . ' ' . $methodColor . 'Methods: ' . $this->printCoverageCounts($classInfo['methodsCovered'], $classInfo['methodCount'], 2) . $resetColor . ' ' |
202 | - . ' ' . $linesColor . 'Lines: ' . $this->printCoverageCounts($classInfo['statementsCovered'], $classInfo['statementCount'], 3) . $resetColor |
|
202 | + . ' ' . $linesColor . 'Lines: ' . $this->printCoverageCounts($classInfo['statementsCovered'], $classInfo['statementCount'], 3) . $resetColor |
|
203 | 203 | ; |
204 | 204 | } |
205 | 205 | } |
@@ -16,11 +16,11 @@ |
||
16 | 16 | private $contextNode; |
17 | 17 | |
18 | 18 | private $codeMap = array( |
19 | - 0 => 'PASSED', // PHPUnit_Runner_BaseTestRunner::STATUS_PASSED |
|
20 | - 1 => 'SKIPPED', // PHPUnit_Runner_BaseTestRunner::STATUS_SKIPPED |
|
19 | + 0 => 'PASSED', // PHPUnit_Runner_BaseTestRunner::STATUS_PASSED |
|
20 | + 1 => 'SKIPPED', // PHPUnit_Runner_BaseTestRunner::STATUS_SKIPPED |
|
21 | 21 | 2 => 'INCOMPLETE', // PHPUnit_Runner_BaseTestRunner::STATUS_INCOMPLETE |
22 | - 3 => 'FAILURE', // PHPUnit_Runner_BaseTestRunner::STATUS_FAILURE |
|
23 | - 4 => 'ERROR', // PHPUnit_Runner_BaseTestRunner::STATUS_ERROR |
|
22 | + 3 => 'FAILURE', // PHPUnit_Runner_BaseTestRunner::STATUS_FAILURE |
|
23 | + 4 => 'ERROR', // PHPUnit_Runner_BaseTestRunner::STATUS_ERROR |
|
24 | 24 | 5 => 'RISKY' // PHPUnit_Runner_BaseTestRunner::STATUS_RISKY |
25 | 25 | ); |
26 | 26 |
@@ -8,7 +8,7 @@ |
||
8 | 8 | |
9 | 9 | array_walk( |
10 | 10 | $filter, |
11 | - function (&$val, $key) { |
|
11 | + function(&$val, $key) { |
|
12 | 12 | $val = preg_replace('|[^0-9]|', '', $val); |
13 | 13 | } |
14 | 14 | ); |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Represents foo. |
|
4 | - */ |
|
3 | + * Represents foo. |
|
4 | + */ |
|
5 | 5 | class Foo |
6 | 6 | { |
7 | 7 | } |
@@ -11,7 +11,7 @@ |
||
11 | 11 | */ |
12 | 12 | function &foo($bar) |
13 | 13 | { |
14 | - $baz = function () {}; |
|
14 | + $baz = function() {}; |
|
15 | 15 | $a = true ? true : false; |
16 | 16 | $b = "{$a}"; |
17 | 17 | $c = "${b}"; |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | |
35 | 35 | $factory = new File_Iterator_Factory; |
36 | 36 | $iterator = $factory->getFileIterator( |
37 | - $paths, $suffixes, $prefixes, $exclude |
|
37 | + $paths, $suffixes, $prefixes, $exclude |
|
38 | 38 | ); |
39 | 39 | |
40 | 40 | $files = array(); |
@@ -58,8 +58,8 @@ discard block |
||
58 | 58 | |
59 | 59 | if ($commonPath) { |
60 | 60 | return array( |
61 | - 'commonPath' => $this->getCommonPath($files), |
|
62 | - 'files' => $files |
|
61 | + 'commonPath' => $this->getCommonPath($files), |
|
62 | + 'files' => $files |
|
63 | 63 | ); |
64 | 64 | } else { |
65 | 65 | return $files; |
@@ -101,7 +101,7 @@ |
||
101 | 101 | |
102 | 102 | while (!$done) { |
103 | 103 | for ($i = 0; $i < $count; $i++) { |
104 | - if ($_files[$i][$j] != $_files[$i+1][$j]) { |
|
104 | + if ($_files[$i][$j] != $_files[$i + 1][$j]) { |
|
105 | 105 | $done = TRUE; |
106 | 106 | break; |
107 | 107 | } |
@@ -54,15 +54,15 @@ |
||
54 | 54 | foreach ($paths as $path) { |
55 | 55 | if (is_dir($path)) { |
56 | 56 | $iterator->append( |
57 | - new File_Iterator( |
|
57 | + new File_Iterator( |
|
58 | 58 | new RecursiveIteratorIterator( |
59 | - new RecursiveDirectoryIterator($path, RecursiveDirectoryIterator::FOLLOW_SYMLINKS) |
|
59 | + new RecursiveDirectoryIterator($path, RecursiveDirectoryIterator::FOLLOW_SYMLINKS) |
|
60 | 60 | ), |
61 | 61 | $suffixes, |
62 | 62 | $prefixes, |
63 | 63 | $exclude, |
64 | 64 | $path |
65 | - ) |
|
65 | + ) |
|
66 | 66 | ); |
67 | 67 | } |
68 | 68 | } |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | |
69 | 69 | else { |
70 | 70 | throw new InvalidArgumentException( |
71 | - 'Template file could not be loaded.' |
|
71 | + 'Template file could not be loaded.' |
|
72 | 72 | ); |
73 | 73 | } |
74 | 74 | } |
@@ -120,14 +120,14 @@ discard block |
||
120 | 120 | $error = error_get_last(); |
121 | 121 | |
122 | 122 | throw new RuntimeException( |
123 | - sprintf( |
|
123 | + sprintf( |
|
124 | 124 | 'Could not write to %s: %s', |
125 | 125 | $target, |
126 | 126 | substr( |
127 | - $error['message'], |
|
128 | - strpos($error['message'], ':') + 2 |
|
127 | + $error['message'], |
|
128 | + strpos($error['message'], ':') + 2 |
|
129 | + ) |
|
129 | 130 | ) |
130 | - ) |
|
131 | 131 | ); |
132 | 132 | } |
133 | 133 | } |
@@ -60,13 +60,9 @@ |
||
60 | 60 | |
61 | 61 | if (file_exists($file)) { |
62 | 62 | $this->template = file_get_contents($file); |
63 | - } |
|
64 | - |
|
65 | - else if (file_exists($distFile)) { |
|
63 | + } else if (file_exists($distFile)) { |
|
66 | 64 | $this->template = file_get_contents($distFile); |
67 | - } |
|
68 | - |
|
69 | - else { |
|
65 | + } else { |
|
70 | 66 | throw new InvalidArgumentException( |
71 | 67 | 'Template file could not be loaded.' |
72 | 68 | ); |