Completed
Pull Request — master (#176)
by Bill
01:39
created
src/Factories/ProcessFactory.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -31,9 +31,9 @@  discard block
 block discarded – undo
31 31
     public function createGitCommitProcess(File $file): ChurnProcess
32 32
     {
33 33
         $process = new Process(
34
-            'git -C ' . escapeshellarg(getcwd()) . ' log --since=' .
35
-            escapeshellarg($this->commitsSince) . ' --name-only --pretty=format: ' .
36
-            escapeshellarg($file->getFullPath()) . ' | sort | uniq -c | sort -nr'
34
+            'git -C '.escapeshellarg(getcwd()).' log --since='.
35
+            escapeshellarg($this->commitsSince).' --name-only --pretty=format: '.
36
+            escapeshellarg($file->getFullPath()).' | sort | uniq -c | sort -nr'
37 37
         );
38 38
 
39 39
         return new ChurnProcess($file, $process, 'GitCommitProcess');
@@ -46,11 +46,11 @@  discard block
 block discarded – undo
46 46
      */
47 47
     public function createCyclomaticComplexityProcess(File $file): ChurnProcess
48 48
     {
49
-        $rootFolder = __DIR__ . '/../../bin/';
49
+        $rootFolder = __DIR__.'/../../bin/';
50 50
 
51 51
         $process = new Process(
52
-            'php ' . escapeshellarg($rootFolder . 'CyclomaticComplexityAssessorRunner') .
53
-            ' ' . escapeshellarg($file->getFullPath())
52
+            'php '.escapeshellarg($rootFolder.'CyclomaticComplexityAssessorRunner').
53
+            ' '.escapeshellarg($file->getFullPath())
54 54
         );
55 55
 
56 56
         return new ChurnProcess($file, $process, 'CyclomaticComplexityProcess');
Please login to merge, or discard this patch.
src/Managers/ProcessManager.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,8 +62,8 @@
 block discarded – undo
62 62
     private function getProcessResults(int $numberOfParallelJobs): void
63 63
     {
64 64
         for ($index = $this->runningProcesses->count();
65
-             $this->filesCollection->hasFiles() > 0 && $index < $numberOfParallelJobs;
66
-             $index++) {
65
+                $this->filesCollection->hasFiles() > 0 && $index < $numberOfParallelJobs;
66
+                $index++) {
67 67
             $file = $this->filesCollection->getNextFile();
68 68
 
69 69
             $process = $this->processFactory->createGitCommitProcess($file);
Please login to merge, or discard this patch.
src/Renderers/Results/JsonResultsRenderer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      */
17 17
     public function render(OutputInterface $output, ResultCollection $results): void
18 18
     {
19
-        $data = array_map(function (array $result) {
19
+        $data = array_map(function(array $result) {
20 20
             return [
21 21
                 'file' => $result[0],
22 22
                 'commits' => $result[1],
Please login to merge, or discard this patch.