We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 4 |
| Paths | 4 |
| Total Lines | 18 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 0 | ||
| 1 | <?php |
||
| 54 | private function absorbAllOf(AllOf $rule, $input) |
||
| 55 | { |
||
| 56 | $rules = $rule->getRules(); |
||
|
|
|||
| 57 | while (($current = array_shift($rules))) { |
||
| 58 | $rule = $current; |
||
| 59 | if (!$rule instanceof AllOf) { |
||
| 60 | continue; |
||
| 61 | } |
||
| 62 | |||
| 63 | if (!$rule->validate($input)) { |
||
| 64 | continue; |
||
| 65 | } |
||
| 66 | |||
| 67 | $rules = $rule->getRules(); |
||
| 68 | } |
||
| 69 | |||
| 70 | return $rule; |
||
| 71 | } |
||
| 72 | } |
||
| 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.