Passed
Pull Request — master (#270)
by Viktor
02:17
created
src/Process/CyclomaticComplexityProcess.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Churn\Process;
4 4
 
Please login to merge, or discard this patch.
src/Process/ChangesCountInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Churn\Process;
4 4
 
Please login to merge, or discard this patch.
src/Process/ChangesCount/NoVcsChangesCountProcess.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Churn\Process\ChangesCount;
4 4
 
Please login to merge, or discard this patch.
src/Process/Handler/ParallelProcessHandler.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Churn\Process\Handler;
4 4
 
@@ -85,10 +85,10 @@  discard block
 block discarded – undo
85 85
     {
86 86
         $process = $processFactory->createChangesCountProcess($file);
87 87
         $process->start();
88
-        $pool['CountChanges:' . $process->getFilename()] = $process;
88
+        $pool['CountChanges:'.$process->getFilename()] = $process;
89 89
         $process = $processFactory->createCyclomaticComplexityProcess($file);
90 90
         $process->start();
91
-        $pool['Complexity:' . $process->getFilename()] = $process;
91
+        $pool['Complexity:'.$process->getFilename()] = $process;
92 92
     }
93 93
 
94 94
     /**
Please login to merge, or discard this patch.
src/Process/CyclomaticComplexityInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Churn\Process;
4 4
 
Please login to merge, or discard this patch.
src/Process/ChurnProcess.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Churn\Process;
4 4
 
Please login to merge, or discard this patch.
src/Process/ProcessFactory.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Churn\Process;
4 4
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     public function __construct(string $vcs, string $commitsSince)
37 37
     {
38 38
         $this->changesCountProcessBuilder = $this->getChangesCountProcessBuilder($vcs, $commitsSince);
39
-        $this->phpExecutable = (string)(new PhpExecutableFinder())->find();
39
+        $this->phpExecutable = (string) (new PhpExecutableFinder())->find();
40 40
     }
41 41
 
42 42
     /**
@@ -76,15 +76,15 @@  discard block
 block discarded – undo
76 76
     {
77 77
         switch ($vcs) {
78 78
             case 'git':
79
-                return static function (File $file) use ($commitsSince): ChangesCountInterface {
79
+                return static function(File $file) use ($commitsSince): ChangesCountInterface {
80 80
                     return new GitChangesCountProcess($file, $commitsSince);
81 81
                 };
82 82
             case 'none':
83
-                return static function (File $file): ChangesCountInterface {
83
+                return static function(File $file): ChangesCountInterface {
84 84
                     return new NoVcsChangesCountProcess($file);
85 85
                 };
86 86
             default:
87
-                throw new InvalidArgumentException('Unsupported VCS: ' . $vcs);
87
+                throw new InvalidArgumentException('Unsupported VCS: '.$vcs);
88 88
         }
89 89
     }
90 90
 
@@ -97,6 +97,6 @@  discard block
 block discarded – undo
97 97
             return [Phar::running(false), 'assess-complexity'];
98 98
         }
99 99
 
100
-        return [__DIR__ . '/../../bin/CyclomaticComplexityAssessorRunner'];
100
+        return [__DIR__.'/../../bin/CyclomaticComplexityAssessorRunner'];
101 101
     }
102 102
 }
Please login to merge, or discard this patch.
src/Process/ProcessInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Churn\Process;
4 4
 
Please login to merge, or discard this patch.
src/File/FileFinder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Churn\File;
4 4
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     public function __construct(array $fileExtensions, array $filesToIgnore)
37 37
     {
38 38
         $this->fileExtensions = $fileExtensions;
39
-        $this->filters = array_map(function (string $fileToIgnore): string {
39
+        $this->filters = array_map(function(string $fileToIgnore): string {
40 40
             return $this->patternToRegex($fileToIgnore);
41 41
         }, $filesToIgnore);
42 42
     }
Please login to merge, or discard this patch.