Completed
Push — master ( 4822ca...2fe762 )
by Johnny
07:13 queued 03:40
created

UsersController::create()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 1
nc 1
nop 0
1
<?php
2
3
namespace App\Http\Controllers\Admin;
4
5
use App\Http\Requests\Admin\UserRequest;
6
use Illuminate\Http\Request;
7
use App\Http\Controllers\Controller;
8
use App\User;
9
10
class UsersController extends Controller
11
{
12
    /**
13
     * Display a listing of the resource.
14
     *
15
     * @return \Illuminate\Http\Response
16
     */
17
    public function index()
18
    {
19
        // Show a list of users
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
        // Show the create user form
30
    }
31
32
33
    /**
34
     * Store a newly created resource in storage.
35
     *
36
     * @param UserRequest|Request $request
37
     *
38
     * @return \Illuminate\Http\Response
39
     */
40
    public function store(UserRequest $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...
41
    {
42
        // Store the user
43
    }
44
45
46
    /**
47
     * Display the specified resource.
48
     *
49
     * @param User $user
50
     *
51
     * @return \Illuminate\Http\Response
52
     * @internal param int $id
53
     */
54
    public function show(User $user)
0 ignored issues
show
Unused Code introduced by
The parameter $user 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...
55
    {
56
        // Show the user
57
    }
58
59
60
    /**
61
     * Show the form for editing the specified resource.
62
     *
63
     * @param User $user
64
     *
65
     * @return \Illuminate\Http\Response
66
     * @internal param int $id
67
     */
68
    public function edit(User $user)
0 ignored issues
show
Unused Code introduced by
The parameter $user 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...
69
    {
70
        // Edit the user
71
    }
72
73
74
    /**
75
     * Update the specified resource in storage.
76
     *
77
     * @param UserRequest|Request $request
78
     * @param User                $user
79
     *
80
     * @return \Illuminate\Http\Response
81
     * @internal param int $id
82
     */
83
    public function update(UserRequest $request, User $user)
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 $user 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
        // Update the user
86
    }
87
88
89
    /**
90
     * Remove the specified resource from storage.
91
     *
92
     * @param User $user
93
     *
94
     * @return \Illuminate\Http\Response
95
     * @internal param int $id
96
     */
97
    public function destroy(User $user)
0 ignored issues
show
Unused Code introduced by
The parameter $user 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...
98
    {
99
        // Destroy the user
100
    }
101
}
102