We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 6 |
Paths | 5 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 42 |
Changes | 0 |
1 | <?php |
||
21 | public function __construct($min = null, $max = null, $inclusive = true) |
||
22 | { |
||
23 | $this->minValue = $min; |
||
24 | $this->maxValue = $max; |
||
25 | if (!is_null($min) && !is_null($max) && $min > $max) { |
||
26 | throw new ComponentException(sprintf('%s cannot be less than %s for validation', $min, $max)); |
||
27 | } |
||
28 | |||
29 | if (!is_null($min)) { |
||
30 | $this->addRule(new Min($min, $inclusive)); |
||
|
|||
31 | } |
||
32 | |||
33 | if (!is_null($max)) { |
||
34 | $this->addRule(new Max($max, $inclusive)); |
||
35 | } |
||
36 | } |
||
37 | } |
||
38 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.