Completed
Pull Request — master (#96)
by
unknown
35:02
created
src/Factories/ProcessFactory.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      */
34 34
     public function createVcsCommitProcess(File $file): ChurnProcess
35 35
     {
36
-        $process = new Process($this->getVscCommand($file) . ' | sort | uniq -c | sort -nr');
36
+        $process = new Process($this->getVscCommand($file).' | sort | uniq -c | sort -nr');
37 37
 
38 38
         return new ChurnProcess($file, $process, 'VcsCommitProcess');
39 39
     }
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      */
46 46
     public function createCyclomaticComplexityProcess(File $file): ChurnProcess
47 47
     {
48
-        $rootFolder = __DIR__ . '/../../';
48
+        $rootFolder = __DIR__.'/../../';
49 49
 
50 50
         $process = new Process(
51 51
             "php {$rootFolder}CyclomaticComplexityAssessorRunner {$file->getFullPath()}"
@@ -62,16 +62,16 @@  discard block
 block discarded – undo
62 62
                 break;
63 63
             }
64 64
 
65
-            if (is_dir($dir . '/.git')) {
66
-                return 'git log --since="' . $this->config->getCommitsSince() . '"  --name-only --pretty=format: ' . $file->getFullPath();
67
-            } elseif (is_dir($dir . '/.hg')) {
65
+            if (is_dir($dir.'/.git')) {
66
+                return 'git log --since="'.$this->config->getCommitsSince().'"  --name-only --pretty=format: '.$file->getFullPath();
67
+            } elseif (is_dir($dir.'/.hg')) {
68 68
                 $since = date('Y-m-d', strtotime($this->config->getCommitsSince()));
69
-                return 'hg log ' . $file->getFullPath() . ' --date "' . $since . ' to now" --template "' . $file->getDisplayPath() . '\n"';
69
+                return 'hg log '.$file->getFullPath().' --date "'.$since.' to now" --template "'.$file->getDisplayPath().'\n"';
70 70
             }
71 71
 
72 72
             $path = $dir;
73 73
         }
74 74
 
75
-        throw new \InvalidArgumentException($file->getFullPath() . ' is not located in a known VCS');
75
+        throw new \InvalidArgumentException($file->getFullPath().' is not located in a known VCS');
76 76
     }
77 77
 }
Please login to merge, or discard this patch.