Completed
Push — master ( b3f08b...f8f8d3 )
by Christopher
01:37
created

TagController   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 62
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 1
dl 0
loc 62
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A index() 0 3 1
A store() 0 3 1
A edit() 0 3 1
A update() 0 3 1
A destroy() 0 3 1
1
<?php
2
3
namespace Chriscreates\Blog\Controllers;
4
5
use Chriscreates\Blog\Tag;
6
use Illuminate\Http\Request;
7
8
class TagController extends Controller
9
{
10
    /**
11
     * Instantiate a new controller instance.
12
     *
13
     * @return void
0 ignored issues
show
Comprehensibility Best Practice introduced by
Adding a @return annotation to constructors is generally not recommended as a constructor does not have a meaningful return value.

Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.

Please refer to the PHP core documentation on constructors.

Loading history...
14
     */
15
    public function __construct()
16
    {
17
        $this->middleware('auth');
18
    }
19
20
    /**
21
     * Display a listing of the resource.
22
     *
23
     * @return \Illuminate\Http\Response
24
     */
25
    public function index() : JsonResponse
26
    {
27
    }
28
29
    /**
30
     * Store a newly created resource in storage.
31
     *
32
     * @param  \Chriscreates\Blog\Requests\ValidateTagRequest  $request
33
     * @return \Illuminate\Http\Response
34
     */
35
    public function store(ValidateTagRequest $request) : JsonResponse
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...
36
    {
37
    }
38
39
    /**
40
     * Show the form for editing the specified resource.
41
     *
42
     * @param  \Chriscreates\Blog\Tag  $tag
43
     * @return \Illuminate\Http\Response
44
     */
45
    public function edit(Tag $tag) : JsonResponse
0 ignored issues
show
Unused Code introduced by
The parameter $tag 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...
46
    {
47
    }
48
49
    /**
50
     * Update the specified resource in storage.
51
     *
52
     * @param  \Chriscreates\Blog\Requests\ValidateTagRequest  $request
53
     * @param  \Chriscreates\Blog\Tag  $tag
54
     * @return \Illuminate\Http\Response
55
     */
56
    public function update(ValidateTagRequest $request, Tag $tag) : JsonResponse
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 $tag 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...
57
    {
58
    }
59
60
    /**
61
     * Remove the specified resource from storage.
62
     *
63
     * @param  \Chriscreates\Blog\Tag  $tag
64
     * @return \Illuminate\Http\Response
65
     */
66
    public function destroy(Tag $tag) : JsonResponse
0 ignored issues
show
Unused Code introduced by
The parameter $tag 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...
67
    {
68
    }
69
}
70