Completed
Push — master ( 46d920...4360d9 )
by Bill
14s
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/Commands/ChurnCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
             'file'       => $file->getRealPath(),
77 77
             'commits'    => $commits,
78 78
             'complexity' => $complexity,
79
-            'score'      => ($commits/ 10) * ($complexity * 8.75),
79
+            'score'      => ($commits / 10) * ($complexity * 8.75),
80 80
         ];
81 81
     }
82 82
 
Please login to merge, or discard this patch.
src/Assessors/GitCommitCount/GitCommitCountAssessor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
         $command = $this->buildCommand($filePath);
32 32
 
33 33
         $result = $this->commandService->execute($command);
34
-        if (! isset($result[0])) {
34
+        if (!isset($result[0])) {
35 35
             return 0;
36 36
         }
37 37
         $result = trim($result[0]);
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     {
49 49
         $commandTemplate = "git log --name-only --pretty=format: %s | sort | uniq -c | sort -nr";
50 50
 
51
-        $pos =strrpos($filePath, '/');
51
+        $pos = strrpos($filePath, '/');
52 52
         if ($pos) {
53 53
             $folder = substr($filePath, 0, $pos);
54 54
             $commandTemplate = "cd {$folder} && git log --name-only --pretty=format: %s | sort | uniq -c | sort -nr";
Please login to merge, or discard this patch.