@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Kunstmaan\ArticleBundle\AdminList; |
4 | 4 | |
5 | -use Doctrine\ORM\EntityManager; |
|
6 | 5 | use Doctrine\ORM\EntityManagerInterface; |
7 | 6 | use Doctrine\ORM\QueryBuilder; |
8 | 7 | use Kunstmaan\AdminBundle\Helper\Security\Acl\AclHelper; |
@@ -17,7 +17,7 @@ |
||
17 | 17 | /** |
18 | 18 | * Returns a list of functions to add to the existing list. |
19 | 19 | * |
20 | - * @return array An array of functions |
|
20 | + * @return \Twig_SimpleFunction[] An array of functions |
|
21 | 21 | */ |
22 | 22 | public function getFunctions() |
23 | 23 | { |
@@ -227,6 +227,11 @@ |
||
227 | 227 | return $translation; |
228 | 228 | } |
229 | 229 | |
230 | + /** |
|
231 | + * @param string $string |
|
232 | + * |
|
233 | + * @return string |
|
234 | + */ |
|
230 | 235 | private function incrementString($string, $append = '-v') |
231 | 236 | { |
232 | 237 | $finalDigitGrabberRegex = '/\d+$/'; |
@@ -11,7 +11,7 @@ |
||
11 | 11 | /** |
12 | 12 | * Check if this parser is applicable |
13 | 13 | * |
14 | - * @return bool |
|
14 | + * @return integer |
|
15 | 15 | */ |
16 | 16 | public function canParse($value) |
17 | 17 | { |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | * Returns a list of namespaces as array with a forward slash to split the namespace & bundle. |
148 | 148 | * |
149 | 149 | * @param Kernel $kernel |
150 | - * @return array |
|
150 | + * @return null|\Symfony\Component\Console\Question\iterable |
|
151 | 151 | */ |
152 | 152 | private function getNamespaceAutoComplete(Kernel $kernel) |
153 | 153 | { |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | * Replaces '\' with '/'. |
164 | 164 | * |
165 | 165 | * @param $namespace |
166 | - * @return mixed |
|
166 | + * @return string |
|
167 | 167 | */ |
168 | 168 | private function fixNamespace($namespace) |
169 | 169 | { |
@@ -34,7 +34,7 @@ |
||
34 | 34 | /** |
35 | 35 | * @param int $percentage |
36 | 36 | * |
37 | - * @return AfterXScrollPercent |
|
37 | + * @return AfterXScrollPercentRule |
|
38 | 38 | */ |
39 | 39 | public function setPercentage($percentage) |
40 | 40 | { |
@@ -30,7 +30,7 @@ |
||
30 | 30 | /** |
31 | 31 | * @param string $locale |
32 | 32 | * |
33 | - * @return LocaleWhitelistRule |
|
33 | + * @return LocaleBlacklistRule |
|
34 | 34 | */ |
35 | 35 | public function setLocale($locale) |
36 | 36 | { |
@@ -17,7 +17,7 @@ |
||
17 | 17 | /** |
18 | 18 | * Returns a list of functions to add to the existing list. |
19 | 19 | * |
20 | - * @return array An array of functions |
|
20 | + * @return \Twig_SimpleFunction[] An array of functions |
|
21 | 21 | */ |
22 | 22 | public function getFunctions() |
23 | 23 | { |
@@ -278,6 +278,10 @@ discard block |
||
278 | 278 | return $response; |
279 | 279 | } |
280 | 280 | |
281 | + /** |
|
282 | + * @param string $code |
|
283 | + * @param string $message |
|
284 | + */ |
|
281 | 285 | private function returnJsonError($code, $message){ |
282 | 286 | |
283 | 287 | return new JsonResponse([ |
@@ -450,7 +454,7 @@ discard block |
||
450 | 454 | * @Route("move/", name="KunstmaanMediaBundle_media_move") |
451 | 455 | * @Method({"POST"}) |
452 | 456 | * |
453 | - * @return string |
|
457 | + * @return JsonResponse |
|
454 | 458 | */ |
455 | 459 | public function moveMedia(Request $request) |
456 | 460 | { |