| Conditions | 3 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 56 | public function expiresAfter(DateInterval | int | null $time): void |
||
| 57 | { |
||
| 58 | if ($time instanceof DateInterval) { |
||
| 59 | $this->expiration = new DateTimeImmutable(); |
||
| 60 | $this->expiration->add($time); |
||
| 61 | |||
| 62 | return; |
||
| 63 | } |
||
| 64 | |||
| 65 | if (is_int($time)) { |
||
| 66 | $this->expiration = new DateTimeImmutable(sprintf('now +%d seconds', $time)); |
||
| 67 | |||
| 68 | return; |
||
| 69 | } |
||
| 70 | |||
| 71 | $this->expiration = new DateTimeImmutable(self::DEFAULT_EXPIRATION); |
||
| 72 | } |
||
| 79 |
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