Total Complexity | 8 |
Total Lines | 53 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | final class IdentitySegment implements Segment |
||
13 | { |
||
14 | public const NAME = 'identity_segment'; |
||
15 | private string $id; |
||
16 | /** @var SegmentPayload */ |
||
|
|||
17 | private array $criteria; |
||
18 | |||
19 | /** @param SegmentPayload $criteria */ |
||
20 | 8 | public function __construct(string $id, array $criteria) |
|
21 | { |
||
22 | 8 | $this->id = $id; |
|
23 | 8 | $this->criteria = $criteria; |
|
24 | } |
||
25 | |||
26 | 4 | public function id(): string |
|
27 | { |
||
28 | 4 | return $this->id; |
|
29 | } |
||
30 | |||
31 | 4 | public function type(): string |
|
34 | } |
||
35 | |||
36 | 4 | public function criteria(): array |
|
39 | } |
||
40 | |||
41 | 6 | public function match(array $payload): bool |
|
51 | } |
||
52 | |||
53 | 5 | public function toArray(): array |
|
54 | { |
||
55 | return [ |
||
56 | 5 | 'id' => $this->id, |
|
57 | 'type' => self::NAME, |
||
58 | 5 | 'criteria' => $this->criteria, |
|
59 | ]; |
||
60 | } |
||
61 | |||
62 | 4 | public function jsonSerialize(): array |
|
65 | } |
||
66 | } |
||
67 |
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