Passed
Pull Request — master (#299)
by Fabien
01:46
created
src/Process/ChangesCountProcessBuilder.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -34,11 +34,11 @@  discard block
 block discarded – undo
34 34
             case 'fossil':
35 35
                 return $this->getFossilChangesCountProcessBuilder($commitsSince);
36 36
             case 'none':
37
-                return static function (File $file): ChangesCountInterface {
37
+                return static function(File $file): ChangesCountInterface {
38 38
                     return new NoVcsChangesCountProcess($file);
39 39
                 };
40 40
             default:
41
-                throw new InvalidArgumentException('Unsupported VCS: ' . $vcs);
41
+                throw new InvalidArgumentException('Unsupported VCS: '.$vcs);
42 42
         }
43 43
     }
44 44
 
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      */
48 48
     private function getGitChangesCountProcessBuilder(string $commitsSince): Closure
49 49
     {
50
-        return static function (File $file) use ($commitsSince): ChangesCountInterface {
50
+        return static function(File $file) use ($commitsSince): ChangesCountInterface {
51 51
             return new GitChangesCountProcess($file, $commitsSince);
52 52
         };
53 53
     }
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
             (new DateTime('tomorrow'))->format('Y-m-d')
64 64
         );
65 65
 
66
-        return static function (File $file) use ($dateRange): ChangesCountInterface {
66
+        return static function(File $file) use ($dateRange): ChangesCountInterface {
67 67
             return new SubversionChangesCountProcess($file, $dateRange);
68 68
         };
69 69
     }
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     {
76 76
         $date = \date('Y-m-d', \strtotime($commitsSince));
77 77
 
78
-        return static function (File $file) use ($date): ChangesCountInterface {
78
+        return static function(File $file) use ($date): ChangesCountInterface {
79 79
             return new MercurialChangesCountProcess($file, $date);
80 80
         };
81 81
     }
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     {
88 88
         $date = \date('Y-m-d', \strtotime($commitsSince));
89 89
 
90
-        return static function (File $file) use ($date): ChangesCountInterface {
90
+        return static function(File $file) use ($date): ChangesCountInterface {
91 91
             return new FossilChangesCountProcess($file, $date);
92 92
         };
93 93
     }
Please login to merge, or discard this patch.