Completed
Pull Request — master (#107)
by Glenn
104:21 queued 64:56
created

BreakController   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 87
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 2
Bugs 1 Features 2
Metric Value
wmc 8
c 2
b 1
f 2
lcom 0
cbo 1
dl 0
loc 87
rs 10

8 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A history() 0 4 1
A request() 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 App\Http\Controllers;
4
5
use Illuminate\Http\Request;
6
7
use App\Http\Requests;
8
use App\Http\Controllers\Controller;
9
10
/**
11
 * Class BreakController
12
 * @package App\Http\Controllers
13
 */
14
class BreakController extends Controller
15
{
16
    /**
17
     * BreakController constructor.
18
     */ 
19
    public function __construct()
20
    {
21
        $this->middleware('auth');
22
        $this->middleware('lang');
23
    }
24
25
    /**
26
     * Display all records for the current user.
27
     *
28
     * @return \Illuminate\Http\Response
29
     */
30
    public function history()
31
    {
32
        return view('break.history');
33
    }
34
35
    /**
36
     * Show the form for creating a new resource.
37
     *
38
     * @return \Illuminate\Http\Response
39
     */
40
    public function request()
41
    {
42
        return view('break.request');
43
    }
44
45
    /**
46
     * Store a newly created resource in storage.
47
     *
48
     * @param  \Illuminate\Http\Request  $request
49
     * @return \Illuminate\Http\Response
50
     */
51
    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...
52
    {
53
        //
54
    }
55
56
    /**
57
     * Display the specified resource.
58
     *
59
     * @param  int  $id
60
     * @return \Illuminate\Http\Response
61
     */
62
    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...
63
    {
64
        //
65
    }
66
67
    /**
68
     * Show the form for editing the specified resource.
69
     *
70
     * @param  int  $id
71
     * @return \Illuminate\Http\Response
72
     */
73
    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...
74
    {
75
        //
76
    }
77
78
    /**
79
     * Update the specified resource in storage.
80
     *
81
     * @param  \Illuminate\Http\Request  $request
82
     * @param  int  $id
83
     * @return \Illuminate\Http\Response
84
     */
85
    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...
86
    {
87
        //
88
    }
89
90
    /**
91
     * Remove the specified resource from storage.
92
     *
93
     * @param  int  $id
94
     * @return \Illuminate\Http\Response
95
     */
96
    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...
97
    {
98
        //
99
    }
100
}
101