Completed
Push — dev ( 4f11ce...5d65d1 )
by Alies
06:00 queued 01:47
created

DonatorController::show()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
nc 1
nop 1
dl 0
loc 3
c 0
b 0
f 0
cc 1
rs 10
1
<?php
2
3
namespace Diglabby\Doika\Http\Controllers\Dashboard;
4
5
use App\Http\Controllers\Controller;
6
use Diglabby\Doika\Models\Donator;
7
use Diglabby\Doika\Models\Transaction;
8
use Illuminate\Http\Response;
9
10
final class DonatorController extends Controller
11
{
12
    public function index()
13
    {
14
        return factory(Donator::class, 10)->make();
15
    }
16
17
    public function show(int $donatorId)
0 ignored issues
show
Unused Code introduced by
The parameter $donatorId 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

17
    public function show(/** @scrutinizer ignore-unused */ int $donatorId)

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...
18
    {
19
        return factory(Donator::class)->make();
20
    }
21
22
    public function delete(int $donatorId)
0 ignored issues
show
Unused Code introduced by
The parameter $donatorId 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

22
    public function delete(/** @scrutinizer ignore-unused */ int $donatorId)

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...
23
    {
24
        return response()->json([], Response::HTTP_ACCEPTED);
25
    }
26
}
27