@@ -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); |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | |
4 | 4 | namespace Churn\Renderers\Results; |
@@ -16,7 +16,7 @@ discard block |
||
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], |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Churn\Managers; |
4 | 4 | |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | */ |
77 | 77 | private function collectFile(SplFileInfo $file): void |
78 | 78 | { |
79 | - if (! in_array($file->getExtension(), $this->fileExtensions)) { |
|
79 | + if (!in_array($file->getExtension(), $this->fileExtensions)) { |
|
80 | 80 | return; |
81 | 81 | } |
82 | 82 | |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | { |
97 | 97 | $path = $file->getPathname(); |
98 | 98 | |
99 | - $matchingFilesToIgnore = array_filter($this->filesToIgnore, function (string $fileToIgnore) use ($path): bool { |
|
99 | + $matchingFilesToIgnore = array_filter($this->filesToIgnore, function(string $fileToIgnore) use ($path): bool { |
|
100 | 100 | $regex = $this->patternToRegex($fileToIgnore); |
101 | 101 | |
102 | 102 | return preg_match("#{$regex}#", $path) === 1; |