@@ -49,7 +49,7 @@ |
||
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 |
@@ -12,7 +12,7 @@ |
||
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 | } |
@@ -68,7 +68,7 @@ discard block |
||
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 |
||
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 | } |
@@ -68,7 +68,7 @@ discard block |
||
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 |
||
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 | } |