Conditions | 4 |
Paths | 4 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
34 | public function getHoldingWebImageStyle(): string |
||
35 | { |
||
36 | $holdingWeb = $this->getThis()->getHoldingWeb(); |
||
37 | if ($holdingWeb === null) { |
||
38 | return ''; |
||
39 | } |
||
40 | |||
41 | if ($holdingWeb->isFinished()) { |
||
42 | $icon = 'webfill.png'; |
||
43 | } else { |
||
44 | $closeTofinish = $holdingWeb->getFinishedTime() - time() < TimeConstants::ONE_HOUR_IN_SECONDS; |
||
45 | |||
46 | $icon = $closeTofinish ? 'web_ufill.png' : 'web_ufill2.png'; |
||
47 | } |
||
48 | |||
49 | return $icon; |
||
50 | } |
||
52 |
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