@@ -70,7 +70,7 @@  | 
                                                    ||
| 70 | 70 | */  | 
                                                        
| 71 | 71 | public function getKey(): string  | 
                                                        
| 72 | 72 |      { | 
                                                        
| 73 | - return $this->getType() . $this->file->getFullPath();  | 
                                                        |
| 73 | + return $this->getType().$this->file->getFullPath();  | 
                                                        |
| 74 | 74 | }  | 
                                                        
| 75 | 75 | |
| 76 | 76 | /**  | 
                                                        
@@ -60,7 +60,7 @@  | 
                                                    ||
| 60 | 60 |      { | 
                                                        
| 61 | 61 | $output = $process->getOutput();  | 
                                                        
| 62 | 62 |          preg_match("/([0-9]{1,})/", $output, $matches); | 
                                                        
| 63 | -        if (! isset($matches[1])) { | 
                                                        |
| 63 | +        if (!isset($matches[1])) { | 
                                                        |
| 64 | 64 | return 0;  | 
                                                        
| 65 | 65 | }  | 
                                                        
| 66 | 66 | return (integer) $matches[1];  | 
                                                        
@@ -53,7 +53,7 @@  | 
                                                    ||
| 53 | 53 |      { | 
                                                        
| 54 | 54 | $directoryIterator = new RecursiveDirectoryIterator($path);  | 
                                                        
| 55 | 55 |          foreach (new RecursiveIteratorIterator($directoryIterator) as $file) { | 
                                                        
| 56 | -            if (! in_array($file->getExtension(), $this->fileExtensions)) { | 
                                                        |
| 56 | +            if (!in_array($file->getExtension(), $this->fileExtensions)) { | 
                                                        |
| 57 | 57 | continue;  | 
                                                        
| 58 | 58 | }  | 
                                                        
| 59 | 59 | |
@@ -227,7 +227,7 @@ discard block  | 
                                                    ||
| 227 | 227 | */  | 
                                                        
| 228 | 228 | private function displayResultsJson(OutputInterface $output, ResultCollection $results)  | 
                                                        
| 229 | 229 |      { | 
                                                        
| 230 | -        $data = array_map(function (array $result) { | 
                                                        |
| 230 | +        $data = array_map(function(array $result) { | 
                                                        |
| 231 | 231 | return [  | 
                                                        
| 232 | 232 | 'file' => $result[0],  | 
                                                        
| 233 | 233 | 'commits' => $result[1],  | 
                                                        
@@ -258,7 +258,7 @@ discard block  | 
                                                    ||
| 258 | 258 | }  | 
                                                        
| 259 | 259 | |
| 260 | 260 | throw new InvalidArgumentException(  | 
                                                        
| 261 | - 'Provide the directories you want to scan as arguments, ' .  | 
                                                        |
| 261 | + 'Provide the directories you want to scan as arguments, '.  | 
                                                        |
| 262 | 262 | 'or configure them under "directoriesToScan" in your churn.yml file.'  | 
                                                        
| 263 | 263 | );  | 
                                                        
| 264 | 264 | }  | 
                                                        
@@ -13,7 +13,7 @@ discard block  | 
                                                    ||
| 13 | 13 | */  | 
                                                        
| 14 | 14 | public function orderByScoreDesc(): self  | 
                                                        
| 15 | 15 |      { | 
                                                        
| 16 | -        return $this->sortByDesc(function (Result $result) { | 
                                                        |
| 16 | +        return $this->sortByDesc(function(Result $result) { | 
                                                        |
| 17 | 17 | return $result->getScore($this->maxCommits(), $this->maxComplexity());  | 
                                                        
| 18 | 18 | });  | 
                                                        
| 19 | 19 | }  | 
                                                        
@@ -29,7 +29,7 @@ discard block  | 
                                                    ||
| 29 | 29 | |
| 30 | 30 | return $this->orderByScoreDesc()  | 
                                                        
| 31 | 31 | ->filter(  | 
                                                        
| 32 | -                function (Result $result) use ($minScore) { | 
                                                        |
| 32 | +                function(Result $result) use ($minScore) { | 
                                                        |
| 33 | 33 | return $result->getScore($this->maxCommits(), $this->maxComplexity()) >= $minScore;  | 
                                                        
| 34 | 34 | }  | 
                                                        
| 35 | 35 | )  | 
                                                        
@@ -42,7 +42,7 @@ discard block  | 
                                                    ||
| 42 | 42 | */  | 
                                                        
| 43 | 43 | public function maxCommits(): int  | 
                                                        
| 44 | 44 |      { | 
                                                        
| 45 | -        return $this->max(function (Result $result) { | 
                                                        |
| 45 | +        return $this->max(function(Result $result) { | 
                                                        |
| 46 | 46 | return $result->getCommits();  | 
                                                        
| 47 | 47 | });  | 
                                                        
| 48 | 48 | }  | 
                                                        
@@ -53,7 +53,7 @@ discard block  | 
                                                    ||
| 53 | 53 | */  | 
                                                        
| 54 | 54 | public function maxComplexity(): int  | 
                                                        
| 55 | 55 |      { | 
                                                        
| 56 | -        return $this->max(function (Result $result) { | 
                                                        |
| 56 | +        return $this->max(function(Result $result) { | 
                                                        |
| 57 | 57 | return $result->getComplexity();  | 
                                                        
| 58 | 58 | });  | 
                                                        
| 59 | 59 | }  | 
                                                        
@@ -66,7 +66,7 @@ discard block  | 
                                                    ||
| 66 | 66 | public function toArray(): array  | 
                                                        
| 67 | 67 |      { | 
                                                        
| 68 | 68 | return array_values(array_map(  | 
                                                        
| 69 | -            function (Result $result) { | 
                                                        |
| 69 | +            function(Result $result) { | 
                                                        |
| 70 | 70 | return array_merge(  | 
                                                        
| 71 | 71 | $result->toArray(),  | 
                                                        
| 72 | 72 | [$result->getScore($this->maxCommits(), $this->maxComplexity())]  | 
                                                        
@@ -32,7 +32,7 @@ discard block  | 
                                                    ||
| 32 | 32 | public function createGitCommitProcess(File $file): ChurnProcess  | 
                                                        
| 33 | 33 |      { | 
                                                        
| 34 | 34 | $process = new Process(  | 
                                                        
| 35 | - 'git -C ' . getcwd() . " log --since=\"" . $this->config->getCommitsSince() . "\" --name-only --pretty=format: " . $file->getFullPath(). " | sort | uniq -c | sort -nr"  | 
                                                        |
| 35 | + 'git -C '.getcwd()." log --since=\"".$this->config->getCommitsSince()."\" --name-only --pretty=format: ".$file->getFullPath()." | sort | uniq -c | sort -nr"  | 
                                                        |
| 36 | 36 | );  | 
                                                        
| 37 | 37 | |
| 38 | 38 | return new ChurnProcess($file, $process, 'GitCommitProcess');  | 
                                                        
@@ -45,7 +45,7 @@ discard block  | 
                                                    ||
| 45 | 45 | */  | 
                                                        
| 46 | 46 | public function createCyclomaticComplexityProcess(File $file): ChurnProcess  | 
                                                        
| 47 | 47 |      { | 
                                                        
| 48 | - $rootFolder = __DIR__ . '/../../bin/';  | 
                                                        |
| 48 | + $rootFolder = __DIR__.'/../../bin/';  | 
                                                        |
| 49 | 49 | |
| 50 | 50 | $process = new Process(  | 
                                                        
| 51 | 51 |              "php {$rootFolder}CyclomaticComplexityAssessorRunner {$file->getFullPath()}" | 
                                                        
@@ -1,8 +1,8 @@  | 
                                                    ||
| 1 | 1 | <?php  | 
                                                        
| 2 | 2 | |
| 3 | -if (is_file($autoload = __DIR__ . '/../vendor/autoload.php')) { | 
                                                        |
| 3 | +if (is_file($autoload = __DIR__.'/../vendor/autoload.php')) { | 
                                                        |
| 4 | 4 | require_once($autoload);  | 
                                                        
| 5 | -} elseif (is_file($autoload = __DIR__ . '/../../../autoload.php')) { | 
                                                        |
| 5 | +} elseif (is_file($autoload = __DIR__.'/../../../autoload.php')) { | 
                                                        |
| 6 | 6 | require_once($autoload);  | 
                                                        
| 7 | 7 |  } else { | 
                                                        
| 8 | 8 | fwrite(STDERR,  |