| Total Complexity | 8 |
| Total Lines | 57 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class ChartStatus |
||
| 8 | { |
||
| 9 | const STATUS_NORMAL = 'NORMAL'; |
||
| 10 | const STATUS_MAJ = 'MAJ'; |
||
| 11 | const STATUS_ERROR = 'ERROR'; |
||
| 12 | |||
| 13 | public const VALUES = [ |
||
| 14 | self::STATUS_NORMAL => self::STATUS_NORMAL, |
||
| 15 | self::STATUS_MAJ => self::STATUS_MAJ, |
||
| 16 | self::STATUS_ERROR => self::STATUS_ERROR, |
||
| 17 | ]; |
||
| 18 | |||
| 19 | private string $value; |
||
| 20 | |||
| 21 | public function __construct(string $value) |
||
| 22 | { |
||
| 23 | self::inArray($value); |
||
| 24 | |||
| 25 | $this->value = $value; |
||
| 26 | } |
||
| 27 | |||
| 28 | public static function inArray(string $value): void |
||
| 31 | } |
||
| 32 | |||
| 33 | public function getValue(): string |
||
| 36 | } |
||
| 37 | |||
| 38 | public function __toString(): string |
||
| 39 | { |
||
| 40 | return $this->value; |
||
| 41 | } |
||
| 42 | |||
| 43 | public function isNormal(): bool |
||
| 44 | { |
||
| 45 | return self::STATUS_NORMAL === $this->value; |
||
| 46 | } |
||
| 47 | |||
| 48 | public function isMaj(): bool |
||
| 49 | { |
||
| 50 | return self::STATUS_MAJ === $this->value; |
||
| 51 | } |
||
| 52 | |||
| 53 | public function isError(): bool |
||
| 56 | } |
||
| 57 | |||
| 58 | public static function getStatusChoices(): array |
||
| 59 | { |
||
| 66 | } |
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