Issues (45)

app/Http/Controllers/ApiCompleteTaskController.php (1 issue)

Severity
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
The parameter $request is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

11
    public function store(/** @scrutinizer ignore-unused */ StoreCompletedTask $request, Task $task)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
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