| Conditions | 3 |
| Paths | 4 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 3.0123 |
| Changes | 0 | ||
| 1 | <?php |
||
| 62 | 1 | #[Override] |
|
| 63 | public function render(): string |
||
| 64 | { |
||
| 65 | 1 | $pro = $this->maxValue === 0 ? 100 : max(0, @round((100 / $this->maxValue) * min($this->value, $this->maxValue))); |
|
| 66 | 1 | $bar = $this->getStatusBar( |
|
| 67 | 1 | $this->color, |
|
| 68 | 1 | ceil($pro / 2) |
|
| 69 | 1 | ); |
|
| 70 | 1 | if ($pro < 100) { |
|
| 71 | $bar .= $this->getStatusBar(StatusBarColorEnum::STATUSBAR_GREY, floor((100 - $pro) / 2)); |
||
| 72 | } |
||
| 73 | 1 | return $bar; |
|
| 74 | } |
||
| 94 |
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