Conditions | 2 |
Paths | 2 |
Total Lines | 19 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
50 | protected function delayUntilNextRequest(): int |
||
51 | { |
||
52 | $currentTimeFrameStart = $this->deferrer->getCurrentTime() - $this->timeFrameLengthInMilliseconds(); |
||
53 | |||
54 | $requestsInCurrentTimeFrame = array_values(array_filter( |
||
55 | $this->store->get(), |
||
56 | function (int $timestamp) use ($currentTimeFrameStart) { |
||
57 | return $timestamp >= $currentTimeFrameStart; |
||
58 | } |
||
59 | )); |
||
60 | |||
61 | if (count($requestsInCurrentTimeFrame) < $this->limit) { |
||
62 | return 0; |
||
63 | } |
||
64 | |||
65 | $oldestRequestStartTimeRelativeToCurrentTimeFrame = |
||
66 | $this->deferrer->getCurrentTime() - $requestsInCurrentTimeFrame[0]; |
||
67 | |||
68 | return $this->timeFrameLengthInMilliseconds() - $oldestRequestStartTimeRelativeToCurrentTimeFrame; |
||
69 | } |
||
80 |
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