1 | <?php |
||
13 | class ArticleController extends BaseController |
||
14 | { |
||
15 | /** |
||
16 | * Render a specific view of Article set. |
||
17 | * |
||
18 | * @param string $countryId |
||
19 | * @param string $articleCategory |
||
20 | * |
||
21 | * @return Response |
||
22 | */ |
||
23 | public function many(string $countryId, string $articleCategory): Response |
||
33 | |||
34 | /** |
||
35 | * Render the Front Page of the Articles Page. |
||
36 | * |
||
37 | * @return Response |
||
38 | */ |
||
39 | protected function front(): Response |
||
40 | { |
||
41 | return response(view('habbo-web-news.articles-front', ['set' => Article::orderBy('id', 'DESC')->limit(10)->get()])); |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * Render a specific Category Articles Page. |
||
46 | * |
||
47 | * @TODO: Proper Way to use Country ID |
||
48 | * |
||
49 | * @param string $countryId |
||
50 | * @param ArticleCategory $category |
||
51 | * @param int $categoryPage |
||
52 | * @param int $start |
||
53 | * |
||
54 | * @return Response |
||
55 | */ |
||
56 | protected function category(string $countryId, ArticleCategory $category, int $categoryPage, int $start): Response |
||
66 | |||
67 | /** |
||
68 | * Render a specific view of a specific Article. |
||
69 | * |
||
70 | * @TODO: Proper Way to use Country ID |
||
71 | * |
||
72 | * @param string $countryId |
||
73 | * @param string $articleName |
||
74 | * |
||
75 | * @return Response |
||
76 | */ |
||
77 | public function one(string $countryId, string $articleName): Response |
||
91 | |||
92 | /** |
||
93 | * Get All Habbo Articles as XML/RSS. |
||
94 | * |
||
95 | * @return Response |
||
96 | */ |
||
97 | public function getRss() |
||
101 | } |
||
102 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.