Completed
Pull Request — master (#127)
by Matthias
02:02
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/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.
src/Managers/FileManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
     {
54 54
         $directoryIterator = new RecursiveDirectoryIterator($path);
55 55
         foreach (new RecursiveIteratorIterator($directoryIterator) as $file) {
56
-            if (! in_array($file->getExtension(), $this->fileExtensions)) {
56
+            if (!in_array($file->getExtension(), $this->fileExtensions)) {
57 57
                 continue;
58 58
             }
59 59
 
Please login to merge, or discard this patch.
bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 if (is_file($autoload = __DIR__.'/vendor/autoload.php')) {
4 4
     require_once($autoload);
5
-} elseif (is_file($autoload = __DIR__ . '/../../autoload.php')) {
5
+} elseif (is_file($autoload = __DIR__.'/../../autoload.php')) {
6 6
     require_once($autoload);
7 7
 } else {
8 8
     fwrite(STDERR,
Please login to merge, or discard this patch.
src/Factories/ProcessFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     public function createGitCommitProcess(File $file): ChurnProcess
33 33
     {
34 34
         $process = new Process(
35
-            'git -C ' . getcwd() . " log --since=\"" . $this->config->getCommitsSince() . "\"  --name-only --pretty=format: " . $file->getFullPath(). " | sort | uniq -c | sort -nr"
35
+            'git -C '.getcwd()." log --since=\"".$this->config->getCommitsSince()."\"  --name-only --pretty=format: ".$file->getFullPath()." | sort | uniq -c | sort -nr"
36 36
         );
37 37
 
38 38
         return new ChurnProcess($file, $process, 'GitCommitProcess');
Please login to merge, or discard this patch.
src/Commands/AssessCyclomaticComplexity.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Churn\Commands;
5 5
 
Please login to merge, or discard this patch.