| Conditions | 4 |
| Paths | 4 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 36 | public function run($arguments) |
||
| 37 | { |
||
| 38 | $currentTime = new \DateTime(); // Current time |
||
| 39 | $endOfDay = new \DateTime('today 23:59:59'); // End of the day |
||
| 40 | $startOfLast15Minutes = (clone $endOfDay)->modify('-15 minutes'); // Start of last 15 minutes of the day |
||
| 41 | |||
| 42 | if ($currentTime >= $startOfLast15Minutes && $currentTime <= $endOfDay) { |
||
| 43 | try { |
||
| 44 | $this->logger->debug('Analytics Dataload - End of day'); |
||
| 45 | $this->DataloadService->executeBySchedule('e'); |
||
| 46 | } catch (\Exception $e) { |
||
| 47 | // Handle exception or log error |
||
| 52 | } |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths