1 | <?php namespace Mascame\Artificer\Controllers; |
||
13 | class ModelController extends BaseModelController |
||
14 | { |
||
15 | |||
16 | /** |
||
17 | * Show the form for creating a new resource. |
||
18 | * |
||
19 | * @return Response |
||
20 | */ |
||
21 | public function create() |
||
32 | |||
33 | /** |
||
34 | * @param $modelName |
||
35 | * @return $this |
||
36 | */ |
||
37 | public function filter($modelName) |
||
59 | |||
60 | /** |
||
61 | * Display the specified resource. |
||
62 | * |
||
63 | * @param int $id |
||
64 | * @return Response |
||
65 | */ |
||
66 | public function show($modelName, $id) |
||
72 | |||
73 | /** |
||
74 | * Display the specified post. |
||
75 | * |
||
76 | * @return Response |
||
77 | */ |
||
78 | public function all($modelName, $data = null, $sort = null) |
||
87 | |||
88 | /** |
||
89 | * Show the form for editing the specified post. |
||
90 | * |
||
91 | * @param int $id |
||
92 | * @return Response |
||
93 | */ |
||
94 | public function edit($modelName, $id) |
||
109 | |||
110 | public function field($modelName, $id, $field) |
||
118 | |||
119 | protected function handleAjaxResponse($item) |
||
131 | |||
132 | /** |
||
133 | * Update or create the specified resource in storage. |
||
134 | * |
||
135 | * @param int $id |
||
136 | * @return Response |
||
137 | */ |
||
138 | |||
139 | public function updateOrCreate(ArtificerFormRequest $request) |
||
150 | |||
151 | /** |
||
152 | * Remove the specified resource from storage. |
||
153 | * |
||
154 | * @param $modelName |
||
155 | * @param $id |
||
156 | * @return \Illuminate\Http\JsonResponse|\Illuminate\Http\RedirectResponse |
||
157 | */ |
||
158 | public function destroy($modelName, $id) |
||
168 | |||
169 | } |
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()
method in theSon
calls the wrong method in the parent class.