Total Complexity | 5 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | abstract class ACharPalette extends APalette implements ICharPalette |
||
15 | { |
||
16 | /** |
||
17 | * @return Traversable<ICharFrame> |
||
18 | */ |
||
19 | protected function getEntries(?IPaletteMode $mode = null): Traversable |
||
20 | { |
||
21 | /** @var string|ICharFrame $element */ |
||
22 | foreach ($this->sequence() as $element) { |
||
23 | if ($element instanceof ICharFrame) { |
||
24 | yield $element; |
||
25 | continue; |
||
26 | } |
||
27 | yield $this->createFrame($element); |
||
28 | } |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * @return Traversable<string|ICharFrame> |
||
33 | */ |
||
34 | abstract protected function sequence(): Traversable; |
||
35 | |||
36 | abstract protected function createFrame(string $element): ICharFrame; |
||
37 | |||
38 | protected function getOptions(?IPaletteMode $mode = null): IPaletteOptions |
||
39 | { |
||
40 | $this->options = |
||
41 | new PaletteOptions( |
||
42 | interval: $this->options->getInterval() ?? $this->getInterval(), |
||
43 | reversed: $this->options->getReversed(), |
||
44 | ); |
||
45 | |||
46 | return parent::getOptions($mode); |
||
47 | } |
||
48 | |||
49 | protected function getInterval(): ?int |
||
52 | } |
||
53 | } |
||
54 |
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