| Total Complexity | 4 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | enum CompressionAlgorithm: int |
||
| 30 | { |
||
| 31 | case GZ = Phar::GZ; |
||
| 32 | case BZ2 = Phar::BZ2; |
||
| 33 | case NONE = Phar::NONE; |
||
| 34 | |||
| 35 | private const LABELS = [ |
||
| 36 | 'GZ' => self::GZ, |
||
| 37 | 'BZ2' => self::BZ2, |
||
| 38 | 'NONE' => self::NONE, |
||
| 39 | ]; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return list<string> |
||
|
|
|||
| 43 | */ |
||
| 44 | public static function getLabels(): array |
||
| 45 | { |
||
| 46 | return array_keys(self::LABELS); |
||
| 47 | } |
||
| 48 | |||
| 49 | public static function fromLabel(?string $label): self |
||
| 55 | }; |
||
| 56 | } |
||
| 57 | |||
| 58 | public function getLabel(): string |
||
| 59 | { |
||
| 60 | return array_search($this, self::LABELS, true); |
||
| 61 | } |
||
| 62 | |||
| 63 | public function getRequiredExtension(): ?string |
||
| 69 | }; |
||
| 70 | } |
||
| 71 | } |
||
| 72 |
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