Total Complexity | 7 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class GameStatus |
||
8 | { |
||
9 | const STATUS_ACTIVE = 'ACTIF'; |
||
10 | const STATUS_INACTIVE = 'INACTIF'; |
||
11 | |||
12 | public const VALUES = [ |
||
13 | self::STATUS_ACTIVE, |
||
14 | self::STATUS_INACTIVE, |
||
15 | ]; |
||
16 | |||
17 | private string $value; |
||
18 | |||
19 | public function __construct(string $value) |
||
20 | { |
||
21 | self::inArray($value); |
||
22 | |||
23 | $this->value = $value; |
||
24 | } |
||
25 | |||
26 | public static function inArray(string $value): void |
||
29 | } |
||
30 | |||
31 | public function getValue(): string |
||
34 | } |
||
35 | |||
36 | public function __toString(): string |
||
37 | { |
||
38 | return $this->value; |
||
39 | } |
||
40 | |||
41 | public function isActive(): bool |
||
42 | { |
||
43 | return self::STATUS_ACTIVE === $this->value; |
||
44 | } |
||
45 | |||
46 | public function isInactive(): bool |
||
47 | { |
||
48 | return self::STATUS_INACTIVE === $this->value; |
||
49 | } |
||
50 | |||
51 | public static function getStatusChoices(): array |
||
56 | ]; |
||
57 | } |
||
58 | } |
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