@@ -2,8 +2,8 @@ |
||
2 | 2 | chdir(__DIR__); |
3 | 3 | |
4 | 4 | if (!file_exists('vendor/autoload.php')) { |
5 | - echo '[ERROR] It\'s required to run "composer install" before building PhpMetrics!' . PHP_EOL; |
|
6 | - exit(1); |
|
5 | + echo '[ERROR] It\'s required to run "composer install" before building PhpMetrics!' . PHP_EOL; |
|
6 | + exit(1); |
|
7 | 7 | } |
8 | 8 | |
9 | 9 | $filename = 'build/phpmetrics.phar'; |
@@ -52,8 +52,8 @@ |
||
52 | 52 | |
53 | 53 | |
54 | 54 | /** |
55 | - * @inheritdoc |
|
56 | - */ |
|
55 | + * @inheritdoc |
|
56 | + */ |
|
57 | 57 | public function execute(ResultCollection $collection, ResultCollection $aggregatedResults) { |
58 | 58 | |
59 | 59 | $this->output->write(str_pad("\x0DGrouping results by package/directory. This will take few minutes...", 80, "\x20")); |
@@ -52,10 +52,10 @@ |
||
52 | 52 | */ |
53 | 53 | public function __construct($min, $max, $average, $sum) |
54 | 54 | { |
55 | - $this->min = $min; |
|
56 | - $this->max = $max; |
|
57 | - $this->average = $average; |
|
58 | - $this->sum = $sum; |
|
55 | + $this->min = $min; |
|
56 | + $this->max = $max; |
|
57 | + $this->average = $average; |
|
58 | + $this->sum = $sum; |
|
59 | 59 | } |
60 | 60 | |
61 | 61 | /** |
@@ -31,7 +31,7 @@ |
||
31 | 31 | $php = 'php'; |
32 | 32 | |
33 | 33 | if (0 >= version_compare('5.4.0', PHP_VERSION)) { |
34 | - $php = PHP_BINARY; |
|
34 | + $php = PHP_BINARY; |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | $output = shell_exec(sprintf('"%s" -l %s 2>&1', $php, escapeshellarg($filename))); |
@@ -80,7 +80,7 @@ |
||
80 | 80 | */ |
81 | 81 | public function offsetExists($offset) |
82 | 82 | { |
83 | - return isset($this->tokens[$offset]); |
|
83 | + return isset($this->tokens[$offset]); |
|
84 | 84 | } |
85 | 85 | |
86 | 86 | /** |
@@ -40,12 +40,12 @@ |
||
40 | 40 | { |
41 | 41 | $result = new Result; |
42 | 42 | $result->setMaintainabilityIndexWithoutComment(max( |
43 | - (171 |
|
43 | + (171 |
|
44 | 44 | - (5.2 * \log($rHalstead->getVolume())) |
45 | 45 | - (0.23 * $rMcCabe->getCyclomaticComplexityNumber()) |
46 | 46 | - (16.2 * \log($rLoc->getLogicalLoc())) |
47 | - ) * 100 / 171 |
|
48 | - ,0)); |
|
47 | + ) * 100 / 171 |
|
48 | + ,0)); |
|
49 | 49 | |
50 | 50 | |
51 | 51 | // comment weight |