@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | |
| 3 | 3 | namespace Churn\Results; |
| 4 | 4 | |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | */ |
| 14 | 14 | public function orderByScoreDesc(): self |
| 15 | 15 | { |
| 16 | - return $this->sortByDesc(function (Result $result) { |
|
| 16 | + return $this->sortByDesc(function(Result $result) { |
|
| 17 | 17 | return $result->getScore($this->maxCommits(), $this->maxComplexity()); |
| 18 | 18 | }); |
| 19 | 19 | } |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | |
| 30 | 30 | return $this->orderByScoreDesc() |
| 31 | 31 | ->filter( |
| 32 | - function (Result $result) use ($minScore) { |
|
| 32 | + function(Result $result) use ($minScore) { |
|
| 33 | 33 | return $result->getScore($this->maxCommits(), $this->maxComplexity()) >= $minScore; |
| 34 | 34 | } |
| 35 | 35 | ) |
@@ -38,14 +38,14 @@ discard block |
||
| 38 | 38 | |
| 39 | 39 | public function maxCommits(): int |
| 40 | 40 | { |
| 41 | - return $this->max(function (Result $result) { |
|
| 41 | + return $this->max(function(Result $result) { |
|
| 42 | 42 | return $result->getCommits(); |
| 43 | 43 | }); |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | public function maxComplexity(): int |
| 47 | 47 | { |
| 48 | - return $this->max(function (Result $result) { |
|
| 48 | + return $this->max(function(Result $result) { |
|
| 49 | 49 | return $result->getComplexity(); |
| 50 | 50 | }); |
| 51 | 51 | } |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | public function toArray(): array |
| 59 | 59 | { |
| 60 | 60 | return array_values(array_map( |
| 61 | - function (Result $result) { |
|
| 61 | + function(Result $result) { |
|
| 62 | 62 | return array_merge( |
| 63 | 63 | $result->toArray(), |
| 64 | 64 | [$result->getScore($this->maxCommits(), $this->maxComplexity())] |