| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | 2 | public function validate(Ruleable $element): bool |
|
| 25 | { |
||
| 26 | /** @var UploadedFileInterface|false $value */ |
||
| 27 | 2 | $value = \getValueByIndexPath($element->getName(), $this->getRequest()->getFilesData()->toArray()); |
|
| 28 | |||
| 29 | 2 | if (false === $this->check($value, $element)) { |
|
| 30 | 1 | return false; |
|
| 31 | } |
||
| 32 | 1 | return true; |
|
| 33 | } |
||
| 52 |
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.