Total Complexity | 8 |
Total Lines | 53 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | abstract class AbstractType implements ResponseTypeInterface |
||
14 | { |
||
15 | protected string $transformer; |
||
16 | protected ?string $key; |
||
17 | protected string $includes = ''; |
||
18 | protected array $meta = []; |
||
19 | |||
20 | abstract public function asResource(): ResourceAbstract; |
||
21 | |||
22 | 1 | public function withKey(string $key): static |
|
23 | { |
||
24 | 1 | $this->key = $key; |
|
25 | |||
26 | 1 | return $this; |
|
27 | } |
||
28 | |||
29 | /** |
||
30 | * @param string|list<string> $includes |
||
|
|||
31 | * |
||
32 | * @return $this |
||
33 | */ |
||
34 | 1 | public function withIncludes(string|array $includes): static |
|
35 | { |
||
36 | 1 | $this->includes = is_array($includes) ? implode(',', $includes) : $includes; |
|
37 | |||
38 | 1 | return $this; |
|
39 | } |
||
40 | |||
41 | 1 | public function withMeta(array $meta): static |
|
42 | { |
||
43 | 1 | $this->meta = $meta; |
|
44 | |||
45 | 1 | return $this; |
|
46 | } |
||
47 | |||
48 | 1 | public function getTransformer(): string |
|
49 | { |
||
50 | 1 | return $this->transformer; |
|
51 | } |
||
52 | |||
53 | 1 | public function getKey(): ?string |
|
54 | { |
||
55 | 1 | return $this->key; |
|
56 | } |
||
57 | |||
58 | 3 | public function getIncludes(): string |
|
59 | { |
||
60 | 3 | return $this->includes; |
|
61 | } |
||
62 | |||
63 | 1 | public function getMeta(): array |
|
66 | } |
||
67 | } |
||
68 |
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