We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | public function assert($input) |
||
| 39 | { |
||
| 40 | if ($this->validate($input)) { |
||
| 41 | return true; |
||
| 42 | } |
||
| 43 | |||
| 44 | $rule = $this->rule; |
||
| 45 | if ($rule instanceof AllOf) { |
||
| 46 | $rule = $this->absorbAllOf($rule, $input); |
||
| 47 | } |
||
| 48 | |||
| 49 | throw $rule |
||
| 50 | ->reportError($input) |
||
| 51 | ->setMode(ValidationException::MODE_NEGATIVE); |
||
| 52 | } |
||
| 53 | |||
| 73 |
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.