| Conditions | 4 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public function errorMessages() { |
||
| 24 | $messages = $this->validators->errorMessages(); |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Rewrite required to required_if for items inside conditional selects |
||
| 28 | */ |
||
| 29 | if ($this->parent() instanceof LsfConditionalSelect) { |
||
| 30 | foreach ($messages as $key => $rule) { |
||
| 31 | if (Str::endsWith($key, 'required')) { |
||
| 32 | $messages[$key . '_if'] = $messages[$key]; |
||
| 33 | |||
| 34 | unset($messages[$key]); |
||
| 35 | } |
||
| 36 | } |
||
| 37 | } |
||
| 38 | |||
| 39 | return $messages; |
||
| 40 | } |
||
| 41 | } |
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.