1 | <?php |
||
14 | class SettingController extends ResourceController |
||
15 | { |
||
16 | /** |
||
17 | * Display a listing of the resource. |
||
18 | * |
||
19 | * @return View |
||
20 | * @throws AuthorizationException |
||
21 | */ |
||
22 | public function index() |
||
31 | |||
32 | /** |
||
33 | * Update the specified resource in storage. |
||
34 | * |
||
35 | * @param UpdateFormRequest $request |
||
|
|||
36 | * @param Setting $setting |
||
37 | * @return RedirectResponse |
||
38 | * @throws AuthorizationException |
||
39 | */ |
||
40 | public function update() |
||
61 | |||
62 | /** |
||
63 | * @param StoreFormRequest $request |
||
64 | * @param Setting $model |
||
65 | * @return RedirectResponse |
||
66 | * @throws FileDoesNotExist |
||
67 | * @throws FileIsTooBig |
||
68 | */ |
||
69 | protected function created($request, $model) |
||
75 | |||
76 | /** |
||
77 | * @return string |
||
78 | */ |
||
79 | protected function getUpdateFormRequest(): string |
||
83 | |||
84 | /** |
||
85 | * @return string |
||
86 | */ |
||
87 | protected function getModel(): string |
||
91 | |||
92 | /** |
||
93 | * @return string |
||
94 | */ |
||
95 | protected function getStoreFormRequest(): string |
||
99 | } |
||
100 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.