Completed
Pull Request — master (#107)
by Glenn
14:55 queued 07:42
created

TaskController::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 1 Features 2
Metric Value
c 2
b 1
f 2
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
namespace App\Http\Controllers;
4
5
use Illuminate\Http\Request;
6
7
use App\Http\Requests;
8
use App\Http\Controllers\Controller;
9
10
class TaskController extends Controller
11
{
12
    /**
13
     * TaskController constructor.
14
     */ 
15
    public function __construct()
16
    {
17
        $this->middleware('auth');
18
        $this->middleware('lang');
19
    }
20
21
    /**
22
     * Display a listing of the resource.
23
     *
24
     * @return \Illuminate\Http\Response
25
     */
26
    public function index()
27
    {
28
        return view("tasks.manage_tasks");
29
    }
30
31
    /**
32
     * Show the form for creating a new resource.
33
     *
34
     * @return \Illuminate\Http\Response
35
     */
36
    public function create()
37
    {
38
        //
39
    }
40
41
    /**
42
     * Store a newly created resource in storage.
43
     *
44
     * @param Request $request
45
     * @return \Illuminate\Http\Response
46
     */
47
    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...
48
    {
49
       //
50
    }
51
52
    /**
53
     * Display the specified resource.
54
     *
55
     * @param  int  $id
56
     * @return \Illuminate\Http\Response
57
     */
58
    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...
59
    {
60
        //
61
    }
62
63
    /**
64
     * Show the form for editing the specified resource.
65
     *
66
     * @param  int $id The id off the task in the database.
67
     * @return \Illuminate\Http\Response
68
     */
69
    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...
70
    {
71
        //
72
    }
73
74
    /**
75
     * Update the specified resource in storage.
76
     *
77
     * @param  \Illuminate\Http\Request  $request
78
     * @param  int  $id
79
     * @return \Illuminate\Http\Response
80
     */
81
    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...
82
    {
83
        //
84
    }
85
86
    /**
87
     * Remove the specified resource from storage.
88
     *
89
     * @param  int $id The id off the task in the database.
90
     * @return \Illuminate\Http\Response
91
     */
92
    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...
93
    {
94
        //
95
    }
96
}
97