@@ -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 |
@@ -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"; |
@@ -52,7 +52,7 @@ |
||
52 | 52 | /** |
53 | 53 | * Displays the results in a table. |
54 | 54 | * @param OutputInterface $output Output. |
55 | - * @param Churn\Results\ResultCollection $results Results Collection. |
|
55 | + * @param ResultCollection $results Results Collection. |
|
56 | 56 | * @return void |
57 | 57 | */ |
58 | 58 | protected function displayResults(OutputInterface $output, ResultCollection $results) |
@@ -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 | } |