Completed
Pull Request — master (#43)
by Bill
05:03 queued 03:37
created
src/Assessors/CyclomaticComplexity/CyclomaticComplexityAssessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
     {
50 50
         preg_match("/[ ]function[ ]/", $contents, $matches);
51 51
         if (isset($matches[0])) {
52
-            $this->score ++;
52
+            $this->score++;
53 53
         }
54 54
     }
55 55
 
Please login to merge, or discard this patch.
src/Results/ResultCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
      */
13 13
     public function orderByScoreDesc(): self
14 14
     {
15
-        return $this->sortByDesc(function ($result) {
15
+        return $this->sortByDesc(function($result) {
16 16
             return $result->getScore();
17 17
         });
18 18
     }
Please login to merge, or discard this patch.
src/Processes/GitCommitCountProcess.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      */
69 69
     public function getKey(): string
70 70
     {
71
-        return 'GitCommitCountProcess' . $this->file->getFullPath();
71
+        return 'GitCommitCountProcess'.$this->file->getFullPath();
72 72
     }
73 73
 
74 74
     /**
@@ -86,6 +86,6 @@  discard block
 block discarded – undo
86 86
      */
87 87
     private function getCommandString(): string
88 88
     {
89
-        return 'git -C ' . getcwd() . " log --name-only --pretty=format: " . $this->file->getFullPath(). " | sort | uniq -c | sort -nr";
89
+        return 'git -C '.getcwd()." log --name-only --pretty=format: ".$this->file->getFullPath()." | sort | uniq -c | sort -nr";
90 90
     }
91 91
 }
Please login to merge, or discard this patch.
src/Processes/CyclomaticComplexityProcess.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      */
69 69
     public function getKey(): string
70 70
     {
71
-        return 'CyclomaticComplexityProcess' . $this->file->getFullPath();
71
+        return 'CyclomaticComplexityProcess'.$this->file->getFullPath();
72 72
     }
73 73
 
74 74
     /**
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      */
87 87
     private function getCommandString(): string
88 88
     {
89
-        $rootFolder = __DIR__ . '/../../';
89
+        $rootFolder = __DIR__.'/../../';
90 90
         return "php {$rootFolder}CyclomaticComplexityAssessorRunner {$this->file->getFullPath()}";
91 91
     }
92 92
 }
Please login to merge, or discard this patch.