@@ -31,9 +31,9 @@ discard block |
||
31 | 31 | public function createGitCommitProcess(File $file): ChurnProcess |
32 | 32 | { |
33 | 33 | $process = new Process( |
34 | - 'git -C ' . escapeshellarg(getcwd()) . ' log --since=' . |
|
35 | - escapeshellarg($this->commitsSince) . ' --name-only --pretty=format: ' . |
|
36 | - escapeshellarg($file->getFullPath()) . ' | sort | uniq -c | sort -nr' |
|
34 | + 'git -C '.escapeshellarg(getcwd()).' log --since='. |
|
35 | + escapeshellarg($this->commitsSince).' --name-only --pretty=format: '. |
|
36 | + escapeshellarg($file->getFullPath()).' | sort | uniq -c | sort -nr' |
|
37 | 37 | ); |
38 | 38 | |
39 | 39 | return new ChurnProcess($file, $process, 'GitCommitProcess'); |
@@ -46,11 +46,11 @@ discard block |
||
46 | 46 | */ |
47 | 47 | public function createCyclomaticComplexityProcess(File $file): ChurnProcess |
48 | 48 | { |
49 | - $rootFolder = __DIR__ . '/../../bin/'; |
|
49 | + $rootFolder = __DIR__.'/../../bin/'; |
|
50 | 50 | |
51 | 51 | $process = new Process( |
52 | - 'php ' . escapeshellarg($rootFolder . 'CyclomaticComplexityAssessorRunner') . |
|
53 | - ' ' . escapeshellarg($file->getFullPath()) |
|
52 | + 'php '.escapeshellarg($rootFolder.'CyclomaticComplexityAssessorRunner'). |
|
53 | + ' '.escapeshellarg($file->getFullPath()) |
|
54 | 54 | ); |
55 | 55 | |
56 | 56 | return new ChurnProcess($file, $process, 'CyclomaticComplexityProcess'); |
@@ -62,8 +62,8 @@ |
||
62 | 62 | private function getProcessResults(int $numberOfParallelJobs): void |
63 | 63 | { |
64 | 64 | for ($index = $this->runningProcesses->count(); |
65 | - $this->filesCollection->hasFiles() > 0 && $index < $numberOfParallelJobs; |
|
66 | - $index++) { |
|
65 | + $this->filesCollection->hasFiles() > 0 && $index < $numberOfParallelJobs; |
|
66 | + $index++) { |
|
67 | 67 | $file = $this->filesCollection->getNextFile(); |
68 | 68 | |
69 | 69 | $process = $this->processFactory->createGitCommitProcess($file); |
@@ -16,7 +16,7 @@ |
||
16 | 16 | */ |
17 | 17 | public function render(OutputInterface $output, ResultCollection $results): void |
18 | 18 | { |
19 | - $data = array_map(function (array $result) { |
|
19 | + $data = array_map(function(array $result) { |
|
20 | 20 | return [ |
21 | 21 | 'file' => $result[0], |
22 | 22 | 'commits' => $result[1], |