| Total Complexity | 7 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | class ResourceUuid implements ResourceUuidInterface |
||
| 20 | { |
||
| 21 | private UuidInterface $uuid; |
||
| 22 | |||
| 23 | private function __construct(UuidInterface $uuid) |
||
| 26 | } |
||
| 27 | |||
| 28 | public static function generate(): self |
||
| 34 | } |
||
| 35 | } |
||
| 36 | |||
| 37 | public static function fromUuid(ResourceUuidInterface $uuid): string |
||
| 38 | { |
||
| 39 | if (!$uuid instanceof ResourceUuidInterface) { |
||
| 40 | throw new \InvalidArgumentException('ResourceUuidInterface type excepted.'); |
||
| 41 | } |
||
| 42 | |||
| 43 | return $uuid->toString(); |
||
| 44 | } |
||
| 45 | |||
| 46 | public static function fromString(string $uuid): self |
||
| 47 | { |
||
| 48 | return new self(Uuid::fromString($uuid)); |
||
| 49 | } |
||
| 50 | |||
| 51 | public function toString(): string |
||
| 54 | } |
||
| 55 | } |
||
| 56 |
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