| Conditions | 2 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | public function getReportConfigurations(): array |
||
| 21 | { |
||
| 22 | /** @var ReportConfigurationInterface[] $reportConfigurations */ |
||
| 23 | $reportConfigurations = $this->reportConfigurationRepository->findAll(); |
||
| 24 | |||
| 25 | // notice that array keys are preserved when using array_filter (https://www.php.net/array_filter) |
||
| 26 | return array_filter($reportConfigurations, static function (ReportConfigurationInterface $reportConfiguration) { |
||
| 27 | $schedule = $reportConfiguration->getSchedule(); |
||
| 28 | |||
| 29 | return $schedule !== null && $schedule->isDue(); |
||
| 30 | }); |
||
| 33 |