Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
1 | <?php namespace WITR\Http\Controllers\Admin; |
||
35 | public function update(Request $request) |
||
36 | { |
||
37 | $input = $request->all(); |
||
38 | $timeslots = TimeSlot::all(); |
||
39 | |||
40 | foreach ($timeslots as $timeslot) { |
||
41 | $dj = $input['dj_' . $timeslot->id]; |
||
42 | $show = $input['show_' . $timeslot->id]; |
||
43 | $timeslot->dj = $dj; |
||
44 | $timeslot->show = $show; |
||
45 | $timeslot->save(); |
||
46 | } |
||
47 | } |
||
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
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.