Conditions | 3 |
Paths | 3 |
Total Lines | 19 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
37 | public function invokeTest() |
||
38 | { |
||
39 | $testResult = new TestResult('Metadata expiration', $this->entityId); |
||
40 | |||
41 | if (array_key_exists('expire', $this->metadata)) { |
||
42 | $expiration = $this->metadata['expire']; |
||
43 | if ($expiration <= time()) { |
||
44 | $testResult->setState(State::ERROR); |
||
45 | $testResult->setMessage('Metadata has expired'); |
||
46 | } else { |
||
47 | $testResult->setState(State::OK); |
||
48 | $testResult->setMessage('Metadata will expire on ' . strftime('%c', $expiration)); |
||
49 | } |
||
50 | } else { |
||
51 | $testResult->setState(State::OK); |
||
52 | $testResult->setMessage('Metadata never expires'); |
||
53 | } |
||
54 | |||
55 | $this->setTestResult($testResult); |
||
56 | } |
||
59 |
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