Total Complexity | 5 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class FormFieldsController |
||
12 | { |
||
13 | public function create(CreateFormFieldRequest $request) |
||
14 | { |
||
15 | $field = FormFieldsService::createField($request); |
||
16 | |||
17 | return response()->json($field, 201); |
||
18 | } |
||
19 | |||
20 | public function list(Request $request) |
||
25 | } |
||
26 | |||
27 | public function update(FormFieldUpdateRequest $request, $fieldId) |
||
28 | { |
||
29 | $field = FormFieldsService::updateField($fieldId, $request); |
||
30 | |||
31 | return response()->json($field, 200); |
||
32 | } |
||
33 | |||
34 | public function delete($fieldId) |
||
35 | { |
||
36 | FormFieldsService::deleteField($fieldId); |
||
37 | |||
38 | return response()->json(null, 200); |
||
39 | } |
||
40 | |||
41 | public function reorder($dragId, $dropId) |
||
46 | } |
||
47 | } |
||
48 |
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.