Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
11 | public function formElement(Request $request, ComponentInterface $component, $field, $id = null) |
||
12 | { |
||
13 | if (is_null($id)) { |
||
14 | $form = $component->fireCreate(); |
||
15 | } else { |
||
16 | $form = $component->fireEdit($id); |
||
17 | } |
||
18 | |||
19 | $element = $form->getElement($field); |
||
20 | |||
21 | return response()->json(['message' => 'ok', 'id' => time()]); |
||
22 | } |
||
23 | } |
||
24 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.