| Conditions | 4 |
| Paths | 4 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 6.7441 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | 4 | public function getHoldingWebBackgroundStyle(): string |
|
| 17 | { |
||
| 18 | 4 | $holdingWeb = $this->getThis()->getHoldingWeb(); |
|
| 19 | 4 | if ($holdingWeb === null) { |
|
| 20 | 4 | return ''; |
|
| 21 | } |
||
| 22 | |||
| 23 | if ($holdingWeb->isFinished()) { |
||
| 24 | $icon = 'web.png'; |
||
| 25 | } else { |
||
| 26 | $closeTofinish = $holdingWeb->getFinishedTime() - time() < TimeConstants::ONE_HOUR_IN_SECONDS; |
||
| 27 | |||
| 28 | $icon = $closeTofinish ? 'web_u.png' : 'web_u2.png'; |
||
| 29 | } |
||
| 30 | |||
| 31 | return sprintf('src="assets/buttons/%s"; class="indexedGraphics" style="z-index: 5;"', $icon); |
||
| 32 | } |
||
| 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