| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types = 1); |
||
| 26 | public function process(Collection $completedProcesses, float $minScore, int $filesToShow) |
||
| 27 | { |
||
| 28 | $resultCollection = $this->parser->parse($completedProcesses); |
||
| 29 | $resultCollection = $resultCollection->whereScoreAbove($minScore); |
||
| 30 | $resultCollection = $resultCollection->orderByScoreDesc(); |
||
| 31 | return $resultCollection->take($filesToShow); |
||
| 32 | } |
||
| 33 | } |
||
| 34 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: