@@ -74,10 +74,10 @@ discard block |
||
74 | 74 | */ |
75 | 75 | private function getCyclomaticComplexityProcessBuilder(): Closure |
76 | 76 | { |
77 | - $phpExecutable = (string)(new PhpExecutableFinder())->find(); |
|
77 | + $phpExecutable = (string) (new PhpExecutableFinder())->find(); |
|
78 | 78 | $command = \array_merge([$phpExecutable], $this->getAssessorArguments()); |
79 | 79 | |
80 | - return static function (File $file) use ($command): CyclomaticComplexityInterface { |
|
80 | + return static function(File $file) use ($command): CyclomaticComplexityInterface { |
|
81 | 81 | $command[] = $file->getFullPath(); |
82 | 82 | $process = new Process($command); |
83 | 83 | |
@@ -92,6 +92,6 @@ discard block |
||
92 | 92 | return [Phar::running(false), 'assess-complexity']; |
93 | 93 | } |
94 | 94 | |
95 | - return [__DIR__ . '/../../bin/CyclomaticComplexityAssessorRunner']; |
|
95 | + return [__DIR__.'/../../bin/CyclomaticComplexityAssessorRunner']; |
|
96 | 96 | } |
97 | 97 | } |
@@ -35,12 +35,12 @@ discard block |
||
35 | 35 | } |
36 | 36 | |
37 | 37 | if ('none' === $vcs) { |
38 | - return static function (File $file): ChangesCountInterface { |
|
38 | + return static function(File $file): ChangesCountInterface { |
|
39 | 39 | return new NoVcsChangesCountProcess($file); |
40 | 40 | }; |
41 | 41 | } |
42 | 42 | |
43 | - throw new InvalidArgumentException('Unsupported VCS: ' . $vcs); |
|
43 | + throw new InvalidArgumentException('Unsupported VCS: '.$vcs); |
|
44 | 44 | } |
45 | 45 | |
46 | 46 | /** |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | */ |
49 | 49 | private function getGitChangesCountProcessBuilder(string $commitsSince): Closure |
50 | 50 | { |
51 | - return static function (File $file) use ($commitsSince): ChangesCountInterface { |
|
51 | + return static function(File $file) use ($commitsSince): ChangesCountInterface { |
|
52 | 52 | return new GitChangesCountProcess($file, $commitsSince); |
53 | 53 | }; |
54 | 54 | } |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | { |
61 | 61 | $date = \date('Y-m-d', \strtotime($commitsSince)); |
62 | 62 | |
63 | - return static function (File $file) use ($date): ChangesCountInterface { |
|
63 | + return static function(File $file) use ($date): ChangesCountInterface { |
|
64 | 64 | return new MercurialChangesCountProcess($file, $date); |
65 | 65 | }; |
66 | 66 | } |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | { |
73 | 73 | $date = \date('Y-m-d', \strtotime($commitsSince)); |
74 | 74 | |
75 | - return static function (File $file) use ($date): ChangesCountInterface { |
|
75 | + return static function(File $file) use ($date): ChangesCountInterface { |
|
76 | 76 | return new FossilChangesCountProcess($file, $date); |
77 | 77 | }; |
78 | 78 | } |