Completed
Pull Request — master (#48)
by claudio
05:21
created

MeetingTimeslotsController   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 77
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 6
lcom 0
cbo 1
dl 0
loc 77
ccs 0
cts 21
cp 0
rs 10
c 1
b 1
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A index() 0 4 1
A show() 0 4 1
A store() 0 4 1
A update() 0 3 1
A destroy() 0 4 1
1
<?php
2
3
namespace plunner\Http\Controllers\Employees\Planners;
4
5
use Illuminate\Http\Request;
6
7
use plunner\Http\Requests;
8
use plunner\Http\Requests\Employees\MeetingRequest;
9
use plunner\Http\Controllers\Controller;
10
11
use plunner\Meeting;
12
13
class MeetingTimeslotsController extends Controller
14
{
15
    /**
16
     * ExampleController constructor.
17
     */
18
    public function __construct()
19
    {
20
        config(['auth.model' => \plunner\Planner::class]);
21
        config(['jwt.user' => \plunner\Planner::class]);
22
        $this->middleware('jwt.authandrefresh:mode-en');
23
    }
24
25
    /**
26
     * Display a listing of the resource.
27
     *
28
     *  @param int $groupId
29
     *  @param int $meetingId
30
     *  @param int $timeslotId
31
     * @return mixed
32
     */
33
    public function index($groupId, $meetingId, $timeslotId)
0 ignored issues
show
Unused Code introduced by
The parameter $groupId 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 $meetingId 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 $timeslotId 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...
34
    {
35
36
    }
37
38
    /**
39
     * Display the specified resource.
40
     *
41
     * @param int $groupId
42
     * @param int $meetingId
43
     *  @param int $timeslotId
44
     * @return mixed
45
     */
46
    public function show($groupId, $meetingId, $timeslotId)
0 ignored issues
show
Unused Code introduced by
The parameter $groupId 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 $meetingId 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 $timeslotId 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...
47
    {
48
49
    }
50
51
    /**
52
     * Store a newly created resource in storage.
53
     *
54
     * @param MeetingRequest $request
55
     * @param int $groupId
56
     * @param int $meetingId
57
     * @return static
58
     */
59
    public function store(MeetingRequest $request, $groupId, $meetingId)
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 $groupId 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 $meetingId 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...
60
    {
61
        //TODO create the right request
62
    }
63
64
    /**
65
     * Update the specified resource in storage.
66
     *
67
     * @param MeetingRequest $request
68
     * @param int $groupId
69
     * @param int $meetingId
70
     * @param int $timeslotId
71
     * @return mixed
72
     */
73
    public function update(MeetingRequest $request, $groupId, $meetingId, $timeslotId)
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 $groupId 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 $meetingId 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 $timeslotId 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
     * Remove the specified resource from storage.
79
     *
80
     * @param int $groupId
81
     * @param int $meetingId
82
     * @param int $timeslotId
83
     * @return mixed
84
     */
85
    public function destroy($groupId, $meetingId, $timeslotId)
0 ignored issues
show
Unused Code introduced by
The parameter $groupId 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 $meetingId 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 $timeslotId 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