| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types = 1); |
||
| 26 | public function normalizeAgainst(Config $config): array |
||
| 27 | { |
||
| 28 | $minScore = $config->getMinScoreToShow(); |
||
| 29 | |||
| 30 | return array_values( |
||
| 31 | $this->orderByScoreDesc() |
||
| 32 | ->when($minScore !== 0, $this->filterByMinScore($minScore)) |
||
| 33 | ->take($config->getFilesToShow()) |
||
| 34 | ->toArray() |
||
| 35 | ); |
||
| 36 | } |
||
| 37 | |||
| 53 |