1 | <?php |
||
12 | class TimeslotsController extends Controller |
||
13 | { |
||
14 | /** |
||
15 | * @var \plunner\Company |
||
16 | */ |
||
17 | private $user; |
||
|
|||
18 | |||
19 | /** |
||
20 | * ExampleController constructor. |
||
21 | */ |
||
22 | 14 | public function __construct() |
|
28 | |||
29 | //TODO check that the calendar is not a caldav calendar |
||
30 | |||
31 | /** |
||
32 | * Display a listing of the resource. |
||
33 | * |
||
34 | * @param int $calendarId |
||
35 | * @return \Illuminate\Http\Response |
||
36 | */ |
||
37 | 2 | public function index($calendarId) |
|
47 | |||
48 | /** |
||
49 | * Store a newly created resource in storage. |
||
50 | * |
||
51 | * @param TimeslotRequest $request |
||
52 | * @param int $calendarId |
||
53 | * @return \Illuminate\Http\Response |
||
54 | */ |
||
55 | 2 | public function store(TimeslotRequest $request, $calendarId) |
|
67 | |||
68 | /** |
||
69 | * Display the specified resource. |
||
70 | * |
||
71 | * @param int $calendarId |
||
72 | * @param int $timeslotId |
||
73 | * @return \Illuminate\Http\Response |
||
74 | */ |
||
75 | 6 | public function show($calendarId, $timeslotId) |
|
84 | |||
85 | /** |
||
86 | * Update the specified resource in storage. |
||
87 | * |
||
88 | * @param TimeslotRequest $request |
||
89 | * @param int $calendarId |
||
90 | * @param int $timeslotId |
||
91 | * @return \Illuminate\Http\Response |
||
92 | */ |
||
93 | 2 | public function update(TimeslotRequest $request, $calendarId, $timeslotId) |
|
104 | |||
105 | /** |
||
106 | * Remove the specified resource from storage. |
||
107 | * |
||
108 | * @param int $calendarId |
||
109 | * @param int $timeslotId |
||
110 | * @return \Illuminate\Http\Response |
||
111 | */ |
||
112 | 2 | public function destroy($calendarId, $timeslotId) |
|
122 | } |
||
123 |
This check marks private properties in classes that are never used. Those properties can be removed.