Passed
Push — master ( 99b625...1e51af )
by Fabien
01:58
created
bin/bootstrap.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,9 +3,9 @@
 block discarded – undo
3 3
 error_reporting(E_ALL);
4 4
 ini_set('display_errors', 'stderr');
5 5
 
6
-if (is_file($autoload = __DIR__ . '/../vendor/autoload.php')) {
6
+if (is_file($autoload = __DIR__.'/../vendor/autoload.php')) {
7 7
     require_once($autoload);
8
-} elseif (is_file($autoload = __DIR__ . '/../../../autoload.php')) {
8
+} elseif (is_file($autoload = __DIR__.'/../../../autoload.php')) {
9 9
     require_once($autoload);
10 10
 } else {
11 11
     fwrite(STDERR,
Please login to merge, or discard this patch.
src/Result/Render/CsvResultsRenderer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
         $output->writeln($this->getHeader());
21 21
 
22 22
         foreach ($results as $result) {
23
-            $output->writeln(\implode(';', ['"' . $result[0] . '"', $result[1], $result[2], $result[3]]));
23
+            $output->writeln(\implode(';', ['"'.$result[0].'"', $result[1], $result[2], $result[3]]));
24 24
         }
25 25
     }
26 26
 
Please login to merge, or discard this patch.
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.
src/File/FileHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     {
20 20
         return (new Filesystem())->isAbsolutePath($path)
21 21
             ? $path
22
-            : $basePath . '/' . $path;
22
+            : $basePath.'/'.$path;
23 23
     }
24 24
 
25 25
     /**
Please login to merge, or discard this patch.
src/Event/HookLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
 
56 56
         foreach ($hooks as $hook) {
57 57
             if (!$this->attach($hook, $broker)) {
58
-                throw new InvalidArgumentException('Invalid hook: ' . $hook);
58
+                throw new InvalidArgumentException('Invalid hook: '.$hook);
59 59
             }
60 60
         }
61 61
     }
Please login to merge, or discard this patch.
src/Process/CacheProcessFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         try {
46 46
             FileHelper::ensureFileIsWritable($cachePath);
47 47
         } catch (Throwable $e) {
48
-            $message = 'Invalid cache file path: ' . $e->getMessage();
48
+            $message = 'Invalid cache file path: '.$e->getMessage();
49 49
 
50 50
             throw new InvalidArgumentException($message, 0, $e);
51 51
         }
Please login to merge, or discard this patch.
src/Command/RunCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -156,12 +156,12 @@
 block discarded – undo
156 156
             $output = $output instanceof ConsoleOutputInterface
157 157
                 ? $output->getErrorOutput()
158 158
                 : $output;
159
-            $output->writeln('<error>Unrecognized configuration keys: ' . \implode(', ', $unrecognizedKeys) . "</>\n");
159
+            $output->writeln('<error>Unrecognized configuration keys: '.\implode(', ', $unrecognizedKeys)."</>\n");
160 160
         }
161 161
 
162 162
         if ([] === $config->getDirectoriesToScan()) {
163 163
             throw new InvalidArgumentException(
164
-                'Provide the directories you want to scan as arguments, ' .
164
+                'Provide the directories you want to scan as arguments, '.
165 165
                 'or configure them under "directoriesToScan" in your churn.yml file.'
166 166
             );
167 167
         }
Please login to merge, or discard this patch.
src/File/FileFinder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
     public function __construct(array $fileExtensions, array $filesToIgnore, string $basePath)
47 47
     {
48 48
         $this->fileExtensions = $fileExtensions;
49
-        $this->filters = \array_map(function (string $fileToIgnore): string {
49
+        $this->filters = \array_map(function(string $fileToIgnore): string {
50 50
             return $this->patternToRegex($fileToIgnore);
51 51
         }, $filesToIgnore);
52 52
         $this->basePath = $basePath;
Please login to merge, or discard this patch.
src/Process/ConcreteProcessFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         $phpExecutable = $this->getPhpExecutable();
72 72
         $command = \array_merge([$phpExecutable], $this->getAssessorArguments());
73 73
 
74
-        return static function (File $file) use ($command): CyclomaticComplexityInterface {
74
+        return static function(File $file) use ($command): CyclomaticComplexityInterface {
75 75
             $command[] = $file->getFullPath();
76 76
             $process = new Process($command);
77 77
 
@@ -100,6 +100,6 @@  discard block
 block discarded – undo
100 100
             return [Phar::running(false), 'assess-complexity'];
101 101
         }
102 102
 
103
-        return [__DIR__ . '/../../bin/CyclomaticComplexityAssessorRunner'];
103
+        return [__DIR__.'/../../bin/CyclomaticComplexityAssessorRunner'];
104 104
     }
105 105
 }
Please login to merge, or discard this patch.