Total Complexity | 5 |
Total Lines | 48 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | final class SequenceStateBuilder implements ISequenceStateBuilder |
||
16 | { |
||
17 | private ?string $sequence = null; |
||
18 | private ?int $width = null; |
||
19 | private ?int $previousWidth = null; |
||
20 | |||
21 | public function withSequence(string $sequence): ISequenceStateBuilder |
||
26 | } |
||
27 | |||
28 | public function withWidth(int $width): ISequenceStateBuilder |
||
29 | { |
||
30 | $clone = clone $this; |
||
31 | $clone->width = $width; |
||
32 | return $clone; |
||
33 | } |
||
34 | |||
35 | public function withPreviousWidth(int $previousWidth): ISequenceStateBuilder |
||
36 | { |
||
37 | $clone = clone $this; |
||
38 | $clone->previousWidth = $previousWidth; |
||
39 | return $clone; |
||
40 | } |
||
41 | |||
42 | public function build(): ISequenceState |
||
43 | { |
||
44 | $this->validate(); |
||
45 | |||
46 | return new SequenceState( |
||
47 | sequence: $this->sequence, |
||
48 | width: $this->width, |
||
49 | previousWidth: $this->previousWidth, |
||
50 | ); |
||
51 | } |
||
52 | |||
53 | /** |
||
54 | * @throws LogicException |
||
55 | */ |
||
56 | private function validate(): void |
||
63 | }; |
||
64 | } |
||
65 | } |
||
66 |
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