@@ -79,12 +79,12 @@ discard block |
||
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | if ('none' === $vcs) { |
| 82 | - return static function (File $file): ChangesCountInterface { |
|
| 82 | + return static function(File $file): ChangesCountInterface { |
|
| 83 | 83 | return new NoVcsChangesCountProcess($file); |
| 84 | 84 | }; |
| 85 | 85 | } |
| 86 | 86 | |
| 87 | - throw new InvalidArgumentException('Unsupported VCS: ' . $vcs); |
|
| 87 | + throw new InvalidArgumentException('Unsupported VCS: '.$vcs); |
|
| 88 | 88 | } |
| 89 | 89 | |
| 90 | 90 | /** |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | */ |
| 93 | 93 | private function getGitChangesCountProcessBuilder(string $commitsSince): Closure |
| 94 | 94 | { |
| 95 | - return static function (File $file) use ($commitsSince): ChangesCountInterface { |
|
| 95 | + return static function(File $file) use ($commitsSince): ChangesCountInterface { |
|
| 96 | 96 | return new GitChangesCountProcess($file, $commitsSince); |
| 97 | 97 | }; |
| 98 | 98 | } |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | { |
| 105 | 105 | $date = \date('Y-m-d', \strtotime($commitsSince)); |
| 106 | 106 | |
| 107 | - return static function (File $file) use ($date): ChangesCountInterface { |
|
| 107 | + return static function(File $file) use ($date): ChangesCountInterface { |
|
| 108 | 108 | return new MercurialChangesCountProcess($file, $date); |
| 109 | 109 | }; |
| 110 | 110 | } |
@@ -114,10 +114,10 @@ discard block |
||
| 114 | 114 | */ |
| 115 | 115 | private function getCyclomaticComplexityProcessBuilder(): Closure |
| 116 | 116 | { |
| 117 | - $phpExecutable = (string)(new PhpExecutableFinder())->find(); |
|
| 117 | + $phpExecutable = (string) (new PhpExecutableFinder())->find(); |
|
| 118 | 118 | $command = \array_merge([$phpExecutable], $this->getAssessorArguments()); |
| 119 | 119 | |
| 120 | - return static function (File $file) use ($command): CyclomaticComplexityInterface { |
|
| 120 | + return static function(File $file) use ($command): CyclomaticComplexityInterface { |
|
| 121 | 121 | $command[] = $file->getFullPath(); |
| 122 | 122 | $process = new Process($command); |
| 123 | 123 | |
@@ -132,6 +132,6 @@ discard block |
||
| 132 | 132 | return [Phar::running(false), 'assess-complexity']; |
| 133 | 133 | } |
| 134 | 134 | |
| 135 | - return [__DIR__ . '/../../bin/CyclomaticComplexityAssessorRunner']; |
|
| 135 | + return [__DIR__.'/../../bin/CyclomaticComplexityAssessorRunner']; |
|
| 136 | 136 | } |
| 137 | 137 | } |