@@ -38,7 +38,6 @@ |
||
38 | 38 | /** |
39 | 39 | * |
40 | 40 | * @access public |
41 | - * @param \CCDNForum\ForumBundle\Component\Crumbs\Factory\CrumbFactory $crumbs |
|
42 | 41 | */ |
43 | 42 | public function __construct(CrumbFactory $crumbFactory) |
44 | 43 | { |
@@ -205,7 +205,7 @@ |
||
205 | 205 | * |
206 | 206 | * @access protected |
207 | 207 | * @param \CCDNForum\ForumBundle\Entity\Topic $topic |
208 | - * @return null|\CCDNForum\ForumBundle\Entity\Board |
|
208 | + * @return \CCDNForum\ForumBundle\Entity\Model\Board|null |
|
209 | 209 | */ |
210 | 210 | private function extractBoardFromTopic(Topic $topic) |
211 | 211 | { |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | /** |
132 | 132 | * |
133 | 133 | * @access public |
134 | - * @param array $userRoles |
|
134 | + * @param array $usersRoles |
|
135 | 135 | * @return int $highestUsersRoleKey |
136 | 136 | */ |
137 | 137 | public function getUsersHighestRole($usersRoles) |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | /** |
156 | 156 | * |
157 | 157 | * @access public |
158 | - * @param array $userRoles |
|
158 | + * @param array $usersRoles |
|
159 | 159 | * @return string $role |
160 | 160 | */ |
161 | 161 | public function getUsersHighestRoleAsName($usersRoles) |
@@ -38,7 +38,7 @@ |
||
38 | 38 | /** |
39 | 39 | * |
40 | 40 | * @access public |
41 | - * @param \CCDNForum\ForumBundle\Model\Component\Manager\ManagerInterface $categoryManager |
|
41 | + * @param \CCDNForum\ForumBundle\Model\Component\Manager\ManagerInterface $categoryModel |
|
42 | 42 | */ |
43 | 43 | public function __construct(ModelInterface $categoryModel) |
44 | 44 | { |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | /** |
34 | 34 | * |
35 | 35 | * @access public |
36 | - * @return RenderResponse |
|
36 | + * @return \Symfony\Component\HttpFoundation\Response |
|
37 | 37 | */ |
38 | 38 | public function listAction() |
39 | 39 | { |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | /** |
55 | 55 | * |
56 | 56 | * @access public |
57 | - * @return RenderResponse |
|
57 | + * @return \Symfony\Component\HttpFoundation\Response |
|
58 | 58 | */ |
59 | 59 | public function createAction() |
60 | 60 | { |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | /** |
76 | 76 | * |
77 | 77 | * @access public |
78 | - * @return RenderResponse |
|
78 | + * @return \Symfony\Component\HttpFoundation\Response |
|
79 | 79 | */ |
80 | 80 | public function createProcessAction() |
81 | 81 | { |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | /** |
102 | 102 | * |
103 | 103 | * @access public |
104 | - * @return RenderResponse |
|
104 | + * @return \Symfony\Component\HttpFoundation\Response |
|
105 | 105 | */ |
106 | 106 | public function editAction($categoryId) |
107 | 107 | { |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | /** |
124 | 124 | * |
125 | 125 | * @access public |
126 | - * @return RenderResponse |
|
126 | + * @return \Symfony\Component\HttpFoundation\Response |
|
127 | 127 | */ |
128 | 128 | public function editProcessAction($categoryId) |
129 | 129 | { |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | /** |
151 | 151 | * |
152 | 152 | * @access public |
153 | - * @return RenderResponse |
|
153 | + * @return \Symfony\Component\HttpFoundation\Response |
|
154 | 154 | */ |
155 | 155 | public function deleteAction($categoryId) |
156 | 156 | { |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | /** |
173 | 173 | * |
174 | 174 | * @access public |
175 | - * @return RedirectResponse |
|
175 | + * @return \Symfony\Component\HttpFoundation\Response |
|
176 | 176 | */ |
177 | 177 | public function deleteProcessAction($categoryId) |
178 | 178 | { |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | /** |
200 | 200 | * |
201 | 201 | * @access public |
202 | - * @return RedirectResponse |
|
202 | + * @return \Symfony\Component\HttpFoundation\RedirectResponse |
|
203 | 203 | */ |
204 | 204 | public function reorderAction($categoryId, $direction) |
205 | 205 | { |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | /** |
33 | 33 | * |
34 | 34 | * @access public |
35 | - * @return RenderResponse |
|
35 | + * @return \Symfony\Component\HttpFoundation\Response |
|
36 | 36 | */ |
37 | 37 | public function listAction() |
38 | 38 | { |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | /** |
50 | 50 | * |
51 | 51 | * @access public |
52 | - * @return RenderResponse |
|
52 | + * @return \Symfony\Component\HttpFoundation\Response |
|
53 | 53 | */ |
54 | 54 | public function createAction() |
55 | 55 | { |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | /** |
69 | 69 | * |
70 | 70 | * @access public |
71 | - * @return RenderResponse |
|
71 | + * @return \Symfony\Component\HttpFoundation\Response |
|
72 | 72 | */ |
73 | 73 | public function createProcessAction() |
74 | 74 | { |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | /** |
93 | 93 | * |
94 | 94 | * @access public |
95 | - * @return RenderResponse |
|
95 | + * @return \Symfony\Component\HttpFoundation\Response |
|
96 | 96 | */ |
97 | 97 | public function editAction($forumId) |
98 | 98 | { |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | /** |
114 | 114 | * |
115 | 115 | * @access public |
116 | - * @return RenderResponse |
|
116 | + * @return \Symfony\Component\HttpFoundation\Response |
|
117 | 117 | */ |
118 | 118 | public function editProcessAction($forumId) |
119 | 119 | { |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | /** |
140 | 140 | * |
141 | 141 | * @access public |
142 | - * @return RenderResponse |
|
142 | + * @return \Symfony\Component\HttpFoundation\Response |
|
143 | 143 | */ |
144 | 144 | public function deleteAction($forumId) |
145 | 145 | { |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | /** |
161 | 161 | * |
162 | 162 | * @access public |
163 | - * @return RedirectResponse |
|
163 | + * @return \Symfony\Component\HttpFoundation\Response |
|
164 | 164 | */ |
165 | 165 | public function deleteProcessAction($forumId) |
166 | 166 | { |
@@ -29,7 +29,7 @@ |
||
29 | 29 | /** |
30 | 30 | * |
31 | 31 | * @access public |
32 | - * @return RenderResponse |
|
32 | + * @return \Symfony\Component\HttpFoundation\RedirectResponse |
|
33 | 33 | */ |
34 | 34 | public function indexAction() |
35 | 35 | { |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | * @param string $template |
203 | 203 | * @param Array $params |
204 | 204 | * @param string $engine |
205 | - * @return string |
|
205 | + * @return \Symfony\Component\HttpFoundation\Response |
|
206 | 206 | */ |
207 | 207 | protected function renderResponse($template, $params = array(), $engine = null) |
208 | 208 | { |
@@ -292,8 +292,8 @@ discard block |
||
292 | 292 | /** |
293 | 293 | * |
294 | 294 | * @access protected |
295 | - * @param string $role|boolean $role |
|
296 | 295 | * @throws \Symfony\Component\Security\Core\Exception\AccessDeniedException |
296 | + * @param string|boolean $role |
|
297 | 297 | */ |
298 | 298 | protected function isAuthorised($role) |
299 | 299 | { |
@@ -329,6 +329,9 @@ discard block |
||
329 | 329 | return true; |
330 | 330 | } |
331 | 331 | |
332 | + /** |
|
333 | + * @param string $query |
|
334 | + */ |
|
332 | 335 | protected function getQuery($query, $default) |
333 | 336 | { |
334 | 337 | return $this->getRequest()->query->get($query, $default); |
@@ -16,7 +16,6 @@ |
||
16 | 16 | use Symfony\Component\Form\AbstractType; |
17 | 17 | use Symfony\Component\Form\FormBuilderInterface; |
18 | 18 | use Symfony\Component\OptionsResolver\OptionsResolverInterface; |
19 | - |
|
20 | 19 | use Symfony\Component\Form\FormEvents; |
21 | 20 | use Symfony\Component\Form\FormEvent; |
22 | 21 | use Symfony\Component\Form\FormError; |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | * @access public |
128 | 128 | * @param string $forumName |
129 | 129 | * @param int $topicId |
130 | - * @return RenderResponse |
|
130 | + * @return \Symfony\Component\HttpFoundation\Response |
|
131 | 131 | */ |
132 | 132 | public function deleteAction($forumName, $topicId) |
133 | 133 | { |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | * @access public |
154 | 154 | * @param string $forumName |
155 | 155 | * @param int $topicId |
156 | - * @return RenderResponse |
|
156 | + * @return \Symfony\Component\HttpFoundation\Response |
|
157 | 157 | */ |
158 | 158 | public function deleteProcessAction($forumName, $topicId) |
159 | 159 | { |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | * @access public |
207 | 207 | * @param string $forumName |
208 | 208 | * @param int $topicId |
209 | - * @return RedirectResponse|RenderResponse |
|
209 | + * @return \Symfony\Component\HttpFoundation\Response |
|
210 | 210 | */ |
211 | 211 | public function changeBoardAction($forumName, $topicId) |
212 | 212 | { |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | * @access public |
233 | 233 | * @param string $forumName |
234 | 234 | * @param int $topicId |
235 | - * @return RedirectResponse|RenderResponse |
|
235 | + * @return \Symfony\Component\HttpFoundation\Response |
|
236 | 236 | */ |
237 | 237 | public function changeBoardProcessAction($forumName, $topicId) |
238 | 238 | { |
@@ -16,7 +16,6 @@ |
||
16 | 16 | use Symfony\Component\Form\AbstractType; |
17 | 17 | use Symfony\Component\Form\FormBuilderInterface; |
18 | 18 | use Symfony\Component\OptionsResolver\OptionsResolverInterface; |
19 | - |
|
20 | 19 | use Symfony\Component\Form\FormEvents; |
21 | 20 | use Symfony\Component\Form\FormEvent; |
22 | 21 | use Symfony\Component\Form\FormError; |