1 | <?php namespace WITR\Http\Controllers\Admin; |
||
9 | class SystemSettingController extends Controller { |
||
10 | |||
11 | public function __construct() |
||
16 | |||
17 | /** |
||
18 | * Display a listing of the resource. |
||
19 | * |
||
20 | * @return Response |
||
21 | */ |
||
22 | public function index() |
||
28 | |||
29 | /** |
||
30 | * Update the specified resource in storage. |
||
31 | * |
||
32 | * @param int $id |
||
|
|||
33 | * @return Response |
||
34 | */ |
||
35 | public function update(Request $request) |
||
57 | } |
||
58 |
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.