| Total Complexity | 10 |
| Total Lines | 82 |
| Duplicated Lines | 0 % |
| Coverage | 83.33% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | final class StatusBar implements StatusBarInterface |
||
| 10 | { |
||
| 11 | private string $color = ''; |
||
| 12 | |||
| 13 | private string $label = ''; |
||
| 14 | |||
| 15 | private int $maxValue = 100; |
||
| 16 | |||
| 17 | private int $value = 0; |
||
| 18 | |||
| 19 | private float $sizeModifier = 1; |
||
| 20 | |||
| 21 | 1 | #[Override] |
|
| 22 | public function setColor(string $color): StatusBarInterface |
||
| 23 | { |
||
| 24 | 1 | $this->color = $color; |
|
| 25 | 1 | return $this; |
|
| 26 | } |
||
| 27 | |||
| 28 | 1 | #[Override] |
|
| 29 | public function setLabel(string $label): StatusBarInterface |
||
| 30 | { |
||
| 31 | 1 | $this->label = $label; |
|
| 32 | 1 | return $this; |
|
| 33 | } |
||
| 34 | |||
| 35 | 1 | #[Override] |
|
| 36 | public function setMaxValue(int $maxValue): StatusBarInterface |
||
| 37 | { |
||
| 38 | 1 | $this->maxValue = $maxValue; |
|
| 39 | 1 | return $this; |
|
| 40 | } |
||
| 41 | |||
| 42 | 1 | #[Override] |
|
| 43 | public function setValue(int $value): StatusBarInterface |
||
| 44 | { |
||
| 45 | 1 | $this->value = $value; |
|
| 46 | 1 | return $this; |
|
| 47 | } |
||
| 48 | |||
| 49 | #[Override] |
||
| 54 | } |
||
| 55 | |||
| 56 | #[Override] |
||
| 60 | } |
||
| 61 | |||
| 62 | 1 | #[Override] |
|
| 74 | } |
||
| 75 | |||
| 76 | 1 | private function getStatusBar(string $color, float $amount): string |
|
| 91 | 1 | ); |
|
| 92 | } |
||
| 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