Conditions | 4 |
Paths | 4 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
33 | public function run($arguments) |
||
34 | { |
||
35 | $currentTime = new \DateTime(); // Current time |
||
36 | $endOfDay = new \DateTime('today 23:59:59'); // End of the day |
||
37 | $startOfLast15Minutes = (clone $endOfDay)->modify('-15 minutes'); // Start of last 15 minutes of the day |
||
38 | |||
39 | if ($currentTime >= $startOfLast15Minutes && $currentTime <= $endOfDay) { |
||
40 | try { |
||
41 | $this->logger->debug('Analytics Dataload - End of day'); |
||
42 | $this->DataloadService->executeBySchedule('e'); |
||
43 | } catch (\Exception $e) { |
||
44 | // Handle exception or log error |
||
49 | } |
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