@@ -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 | |
@@ -76,7 +76,7 @@ |
||
| 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 | |
@@ -31,7 +31,7 @@ discard block |
||
| 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 |
||
| 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"; |