Completed
Push — master ( 8d86bb...e3764f )
by Bill
02:31 queued 01:12
created
src/Processes/ChurnProcess.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
      */
71 71
     public function getKey(): string
72 72
     {
73
-        return $this->getType() . $this->file->getFullPath();
73
+        return $this->getType().$this->file->getFullPath();
74 74
     }
75 75
 
76 76
     /**
Please login to merge, or discard this patch.
src/Results/ResultsParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
     {
61 61
         $output = $process->getOutput();
62 62
         preg_match("/([0-9]{1,})/", $output, $matches);
63
-        if (! isset($matches[1])) {
63
+        if (!isset($matches[1])) {
64 64
             return 0;
65 65
         }
66 66
         return (integer) $matches[1];
Please login to merge, or discard this patch.
src/Factories/ProcessFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     public function createGitCommitProcess(File $file): ChurnProcess
27 27
     {
28 28
         $process = new Process(
29
-            'git -C ' . getcwd() . " log --since=\"" . $this->config->getCommitsSince() . "\"  --name-only --pretty=format: " . $file->getFullPath(). " | sort | uniq -c | sort -nr"
29
+            'git -C '.getcwd()." log --since=\"".$this->config->getCommitsSince()."\"  --name-only --pretty=format: ".$file->getFullPath()." | sort | uniq -c | sort -nr"
30 30
         );
31 31
 
32 32
         return new ChurnProcess($file, $process, 'GitCommitProcess');
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      */
40 40
     public function createCyclomaticComplexityProcess(File $file): ChurnProcess
41 41
     {
42
-        $rootFolder = __DIR__ . '/../../';
42
+        $rootFolder = __DIR__.'/../../';
43 43
 
44 44
         $process = new Process(
45 45
             "php {$rootFolder}CyclomaticComplexityAssessorRunner {$file->getFullPath()}"
Please login to merge, or discard this patch.
src/Commands/ChurnCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
     public function __construct()
78 78
     {
79 79
         parent::__construct();
80
-        $this->config = new Config(Yaml::parse(@file_get_contents(getcwd() . '/churn.yml')) ?? []);
80
+        $this->config = new Config(Yaml::parse(@file_get_contents(getcwd().'/churn.yml')) ?? []);
81 81
         $this->fileManager = new FileManager($this->config);
82 82
         $this->processFactory = new ProcessFactory($this->config);
83 83
         $this->resultsParser = new ResultsParser;
Please login to merge, or discard this patch.
src/Results/ResultCollection.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
      */
15 15
     public function orderByScoreDesc(): self
16 16
     {
17
-        return $this->sortByDesc(function (Result $result) {
17
+        return $this->sortByDesc(function(Result $result) {
18 18
             return $result->getScore();
19 19
         });
20 20
     }
@@ -41,8 +41,8 @@  discard block
 block discarded – undo
41 41
      */
42 42
     private function filterByMinScore(int $minScore): Closure
43 43
     {
44
-        return function (ResultCollection $results) use ($minScore) {
45
-            return $results->filter(function (Result $result) use ($minScore) {
44
+        return function(ResultCollection $results) use ($minScore) {
45
+            return $results->filter(function(Result $result) use ($minScore) {
46 46
                 return $result->getScore() >= $minScore;
47 47
             });
48 48
         };
Please login to merge, or discard this patch.