Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Completed
Push — development ( e2aa6f...cf846e )
by José
02:52
created

DonorController   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 80
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 7
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 80
rs 10

7 Methods

Rating   Name   Duplication   Size   Complexity  
A index() 0 6 1
A create() 0 4 1
A store() 0 4 1
A show() 0 4 1
A edit() 0 4 1
A update() 0 4 1
A destroy() 0 4 1
1
<?php
2
3
namespace DoeSangue\Http\Controllers;
4
5
use DoeSangue\Donor;
6
use Illuminate\Http\Request;
7
8
class DonorController extends Controller
9
{
10
    /**
11
     * Display a listing of the resource.
12
     *
13
     * @return \Illuminate\Http\Response
14
     */
15
    public function index()
16
    {
17
        $donors = Donor::orderBy('id', 'desc')->get();
18
19
        return view('donors.index', compact('donors'));
20
    }
21
22
    /**
23
     * Show the form for creating a new resource.
24
     *
25
     * @return \Illuminate\Http\Response
26
     */
27
    public function create()
28
    {
29
        //
30
    }
31
32
    /**
33
     * Store a newly created resource in storage.
34
     *
35
     * @param  \Illuminate\Http\Request  $request
36
     * @return \Illuminate\Http\Response
37
     */
38
    public function store(Request $request)
0 ignored issues
show
Unused Code introduced by
The parameter $request is not used and could be removed.

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

Loading history...
39
    {
40
        //
41
    }
42
43
    /**
44
     * Display the specified resource.
45
     *
46
     * @param  int  $id
47
     * @return \Illuminate\Http\Response
48
     */
49
    public function show($id)
0 ignored issues
show
Unused Code introduced by
The parameter $id is not used and could be removed.

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

Loading history...
50
    {
51
        //
52
    }
53
54
    /**
55
     * Show the form for editing the specified resource.
56
     *
57
     * @param  int  $id
58
     * @return \Illuminate\Http\Response
59
     */
60
    public function edit($id)
0 ignored issues
show
Unused Code introduced by
The parameter $id is not used and could be removed.

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

Loading history...
61
    {
62
        //
63
    }
64
65
    /**
66
     * Update the specified resource in storage.
67
     *
68
     * @param  \Illuminate\Http\Request  $request
69
     * @param  int  $id
70
     * @return \Illuminate\Http\Response
71
     */
72
    public function update(Request $request, $id)
0 ignored issues
show
Unused Code introduced by
The parameter $request is not used and could be removed.

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

Loading history...
Unused Code introduced by
The parameter $id is not used and could be removed.

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

Loading history...
73
    {
74
        //
75
    }
76
77
    /**
78
     * Remove the specified resource from storage.
79
     *
80
     * @param  int  $id
81
     * @return \Illuminate\Http\Response
82
     */
83
    public function destroy($id)
0 ignored issues
show
Unused Code introduced by
The parameter $id is not used and could be removed.

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

Loading history...
84
    {
85
        //
86
    }
87
}
88