| Conditions | 3 |
| Paths | 3 |
| Total Lines | 17 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 33 | public function ajaxAction(FormWrapper $formWrapper) |
||
| 34 | { |
||
| 35 | $form = FormFactory::get()->create($formWrapper->getForm()); |
||
| 36 | $form->handleRequest(); |
||
| 37 | |||
| 38 | if ($form->isValid()) { |
||
| 39 | foreach ($formWrapper->getSuccessActions() as $action) { |
||
| 40 | $action->execute($form); |
||
| 41 | } |
||
| 42 | |||
| 43 | return json_encode([]); |
||
| 44 | } else { |
||
| 45 | http_response_code(400); |
||
| 46 | |||
| 47 | return json_encode($this->getFormErrors($form)); |
||
| 48 | } |
||
| 49 | } |
||
| 50 | |||
| 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.