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

LinksController::show()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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