Passed
Push — master ( 6e4402...4ca626 )
by Fabien
02:16
created
src/Process/ProcessFactory.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -70,18 +70,18 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.