| 1 | <?php namespace WITR\Http\Controllers\Admin; |
||
| 10 | class ScheduleController extends Controller { |
||
| 11 | |||
| 12 | public function __construct() |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Display a listing of the resource. |
||
| 20 | * |
||
| 21 | * @return Response |
||
| 22 | */ |
||
| 23 | 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) |
||
| 48 | } |
||
| 49 |
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
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.