1 | <?php |
||
12 | class DashboardController extends Controller |
||
13 | { |
||
14 | /** |
||
15 | * Return view to create new Video post |
||
16 | * |
||
17 | * @return View Object |
||
18 | */ |
||
19 | public function create() |
||
25 | |||
26 | /** |
||
27 | * Add a new video and also add a list of all categories that it belongs |
||
28 | * to |
||
29 | * |
||
30 | * @param VideoRequest $request Request |
||
31 | * @return Redirect to create page |
||
32 | */ |
||
33 | public function store(VideoRequest $request) |
||
42 | |||
43 | /** |
||
44 | * Display the edit page for a new video. |
||
45 | * |
||
46 | * @param integer $id Video Id |
||
47 | * @return View Edit video View |
||
48 | */ |
||
49 | public function edit($id) |
||
62 | |||
63 | /** |
||
64 | * Update an existing video |
||
65 | * |
||
66 | * @param VideoRequest $request Validation request |
||
67 | * @param integer $id Video Id |
||
68 | * @return Redirect Redirect to episode page |
||
69 | */ |
||
70 | public function update(VideoRequest $request, $id) |
||
87 | |||
88 | /** |
||
89 | * Delete a video |
||
90 | * |
||
91 | * @param Integer $id Video Id |
||
92 | * @return Redirect Redirect use to appropriate page |
||
93 | */ |
||
94 | public function delete(Request $request, $id) |
||
108 | |||
109 | /** |
||
110 | * Return a list of all favorited user videos |
||
111 | * |
||
112 | * @return View |
||
113 | */ |
||
114 | public function favorites() |
||
127 | |||
128 | /** |
||
129 | * Return a list of all videos uploaded by a user |
||
130 | * |
||
131 | * @return Video |
||
132 | */ |
||
133 | public function uploads() |
||
138 | } |
||
139 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.