Passed
Pull Request — master (#299)
by Fabien
02:12
created
src/Process/ChangesCountProcessBuilder.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
             case 'none':
37 37
                 return $this->getNoVcsChangesCountProcessBuilder();
38 38
             default:
39
-                throw new InvalidArgumentException('Unsupported VCS: ' . $vcs);
39
+                throw new InvalidArgumentException('Unsupported VCS: '.$vcs);
40 40
         }
41 41
     }
42 42
 
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      */
46 46
     private function getGitChangesCountProcessBuilder(string $commitsSince): Closure
47 47
     {
48
-        return static function (File $file) use ($commitsSince): ChangesCountInterface {
48
+        return static function(File $file) use ($commitsSince): ChangesCountInterface {
49 49
             return new GitChangesCountProcess($file, $commitsSince);
50 50
         };
51 51
     }
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
             (new DateTime('tomorrow'))->format('Y-m-d')
62 62
         );
63 63
 
64
-        return static function (File $file) use ($dateRange): ChangesCountInterface {
64
+        return static function(File $file) use ($dateRange): ChangesCountInterface {
65 65
             return new SubversionChangesCountProcess($file, $dateRange);
66 66
         };
67 67
     }
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     {
74 74
         $date = \date('Y-m-d', \strtotime($commitsSince));
75 75
 
76
-        return static function (File $file) use ($date): ChangesCountInterface {
76
+        return static function(File $file) use ($date): ChangesCountInterface {
77 77
             return new MercurialChangesCountProcess($file, $date);
78 78
         };
79 79
     }
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
     {
86 86
         $date = \date('Y-m-d', \strtotime($commitsSince));
87 87
 
88
-        return static function (File $file) use ($date): ChangesCountInterface {
88
+        return static function(File $file) use ($date): ChangesCountInterface {
89 89
             return new FossilChangesCountProcess($file, $date);
90 90
         };
91 91
     }
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      */
96 96
     private function getNoVcsChangesCountProcessBuilder(): Closure
97 97
     {
98
-        return static function (File $file): ChangesCountInterface {
98
+        return static function(File $file): ChangesCountInterface {
99 99
             return new NoVcsChangesCountProcess($file);
100 100
         };
101 101
     }
Please login to merge, or discard this patch.