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 | $startOfDay = new \DateTime('today 00:00:00'); // Start of the day |
||
37 | $endOfFirst15Minutes = (clone $startOfDay)->modify('+15 minutes'); // End of first 15 minutes of the day |
||
38 | |||
39 | if ($currentTime >= $startOfDay && $currentTime <= $endOfFirst15Minutes) { |
||
40 | try { |
||
41 | $this->logger->debug('Analytics Dataload - Start of day'); |
||
42 | $this->DataloadService->executeBySchedule('s'); |
||
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