eric98 /
Tasks
| 1 | <?php |
||
| 2 | |||
| 3 | namespace App\Http\Controllers; |
||
| 4 | |||
| 5 | use App\Http\Requests\DestroyCompletedTask; |
||
| 6 | use App\Http\Requests\StoreCompletedTask; |
||
| 7 | use App\Task; |
||
| 8 | |||
| 9 | class ApiCompleteTaskController extends Controller |
||
| 10 | { |
||
| 11 | public function store(StoreCompletedTask $request, Task $task) |
||
|
0 ignored issues
–
show
|
|||
| 12 | { |
||
| 13 | $task->completed = true; |
||
| 14 | $task->save(); |
||
| 15 | |||
| 16 | return $task; |
||
| 17 | } |
||
| 18 | |||
| 19 | public function destroy(DestroyCompletedTask $request, Task $task) |
||
| 20 | { |
||
| 21 | $task->completed = false; |
||
| 22 | $task->save(); |
||
| 23 | |||
| 24 | return $task; |
||
| 25 | } |
||
| 26 | } |
||
| 27 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.