@@ -70,18 +70,18 @@ discard block |
||
| 70 | 70 | private function getChangesCountProcessBuilder(string $vcs, string $commitsSince): Closure |
| 71 | 71 | { |
| 72 | 72 | if ('git' === $vcs) { |
| 73 | - return static function (File $file) use ($commitsSince): ChangesCountInterface { |
|
| 73 | + return static function(File $file) use ($commitsSince): ChangesCountInterface { |
|
| 74 | 74 | return new GitChangesCountProcess($file, $commitsSince); |
| 75 | 75 | }; |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | if ('none' === $vcs) { |
| 79 | - return static function (File $file): ChangesCountInterface { |
|
| 79 | + return static function(File $file): ChangesCountInterface { |
|
| 80 | 80 | return new NoVcsChangesCountProcess($file); |
| 81 | 81 | }; |
| 82 | 82 | } |
| 83 | 83 | |
| 84 | - throw new InvalidArgumentException('Unsupported VCS: ' . $vcs); |
|
| 84 | + throw new InvalidArgumentException('Unsupported VCS: '.$vcs); |
|
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | /** |
@@ -89,10 +89,10 @@ discard block |
||
| 89 | 89 | */ |
| 90 | 90 | private function getCyclomaticComplexityProcessBuilder(): Closure |
| 91 | 91 | { |
| 92 | - $phpExecutable = (string)(new PhpExecutableFinder())->find(); |
|
| 92 | + $phpExecutable = (string) (new PhpExecutableFinder())->find(); |
|
| 93 | 93 | $command = \array_merge([$phpExecutable], $this->getAssessorArguments()); |
| 94 | 94 | |
| 95 | - return static function (File $file) use ($command): CyclomaticComplexityInterface { |
|
| 95 | + return static function(File $file) use ($command): CyclomaticComplexityInterface { |
|
| 96 | 96 | $command[] = $file->getFullPath(); |
| 97 | 97 | $process = new Process($command); |
| 98 | 98 | |
@@ -107,6 +107,6 @@ discard block |
||
| 107 | 107 | return [Phar::running(false), 'assess-complexity']; |
| 108 | 108 | } |
| 109 | 109 | |
| 110 | - return [__DIR__ . '/../../bin/CyclomaticComplexityAssessorRunner']; |
|
| 110 | + return [__DIR__.'/../../bin/CyclomaticComplexityAssessorRunner']; |
|
| 111 | 111 | } |
| 112 | 112 | } |