Total Complexity | 3 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class Range extends Element implements Ruleable, Descriptionable |
||
16 | { |
||
17 | use Description; |
||
18 | use Rules; |
||
19 | |||
20 | protected string $type = 'range'; |
||
21 | |||
22 | 1 | public function setMin(string|int $min): self |
|
23 | { |
||
24 | 1 | Assert::numeric($min); |
|
25 | 1 | $min = (int) $min; |
|
26 | 1 | $this->setAttr(AttributeFactory::create('min', $min)); |
|
27 | 1 | return $this; |
|
28 | } |
||
29 | |||
30 | |||
31 | 1 | public function setMax(int|string $max): self |
|
32 | { |
||
33 | 1 | Assert::numeric($max); |
|
34 | 1 | $max = (int) $max; |
|
35 | 1 | $this->setAttr(AttributeFactory::create('max', $max)); |
|
36 | 1 | return $this; |
|
37 | } |
||
38 | |||
39 | |||
40 | /** |
||
41 | * @param numeric $step |
||
|
|||
42 | * @return $this |
||
43 | */ |
||
44 | 1 | public function setStep(float|int|string $step): self |
|
49 | } |
||
50 | } |
||
51 |
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