@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | * @param string|null $extendClass |
96 | 96 | * @param bool $withRepository |
97 | 97 | * |
98 | - * @return array |
|
98 | + * @return string[] |
|
99 | 99 | * |
100 | 100 | * @throws \RuntimeException |
101 | 101 | */ |
@@ -186,9 +186,9 @@ discard block |
||
186 | 186 | /** |
187 | 187 | * Generate the entity admin type. |
188 | 188 | * |
189 | - * @param $bundle |
|
190 | - * @param $entityName |
|
191 | - * @param $entityPrefix |
|
189 | + * @param BundleInterface $bundle |
|
190 | + * @param string $entityName |
|
191 | + * @param string $entityPrefix |
|
192 | 192 | * @param string $extendClass |
193 | 193 | */ |
194 | 194 | protected function generateEntityAdminType( |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | /** |
140 | 140 | * Returns a list of namespaces as array with a forward slash to split the namespace & bundle. |
141 | 141 | * |
142 | - * @return array |
|
142 | + * @return \Symfony\Component\Console\Question\iterable|null |
|
143 | 143 | */ |
144 | 144 | private function getNamespaceAutoComplete(Kernel $kernel) |
145 | 145 | { |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | * |
157 | 157 | * @param $namespace |
158 | 158 | * |
159 | - * @return mixed |
|
159 | + * @return string |
|
160 | 160 | */ |
161 | 161 | private function fixNamespace($namespace) |
162 | 162 | { |
@@ -271,6 +271,10 @@ discard block |
||
271 | 271 | return $response; |
272 | 272 | } |
273 | 273 | |
274 | + /** |
|
275 | + * @param string $code |
|
276 | + * @param string $message |
|
277 | + */ |
|
274 | 278 | private function returnJsonError($code, $message) |
275 | 279 | { |
276 | 280 | return new JsonResponse( |
@@ -443,7 +447,7 @@ discard block |
||
443 | 447 | /** |
444 | 448 | * @Route("move/", name="KunstmaanMediaBundle_media_move", methods={"POST"}) |
445 | 449 | * |
446 | - * @return string |
|
450 | + * @return JsonResponse |
|
447 | 451 | */ |
448 | 452 | public function moveMedia(Request $request) |
449 | 453 | { |
@@ -46,7 +46,7 @@ |
||
46 | 46 | /** |
47 | 47 | * @Route("/", name="kunstmaanmenubundle_admin_menu") |
48 | 48 | * |
49 | - * @return array |
|
49 | + * @return \Symfony\Component\HttpFoundation\Response |
|
50 | 50 | */ |
51 | 51 | public function indexAction(Request $request) |
52 | 52 | { |
@@ -744,7 +744,7 @@ |
||
744 | 744 | /** |
745 | 745 | * @Route("/reorder", name="KunstmaanNodeBundle_nodes_reorder", methods={"POST"}) |
746 | 746 | * |
747 | - * @return string |
|
747 | + * @return JsonResponse |
|
748 | 748 | * |
749 | 749 | * @throws AccessDeniedException |
750 | 750 | */ |
@@ -6,11 +6,23 @@ |
||
6 | 6 | |
7 | 7 | interface NodeIndexUpdateEventListenerInterface |
8 | 8 | { |
9 | + /** |
|
10 | + * @return void |
|
11 | + */ |
|
9 | 12 | public function onPostPublish(NodeEvent $event); |
10 | 13 | |
14 | + /** |
|
15 | + * @return void |
|
16 | + */ |
|
11 | 17 | public function onPostPersist(NodeEvent $event); |
12 | 18 | |
19 | + /** |
|
20 | + * @return void |
|
21 | + */ |
|
13 | 22 | public function onPostDelete(NodeEvent $event); |
14 | 23 | |
24 | + /** |
|
25 | + * @return void |
|
26 | + */ |
|
15 | 27 | public function onPostUnPublish(NodeEvent $event); |
16 | 28 | } |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | * |
51 | 51 | * @param string $name The name of the route |
52 | 52 | * @param mixed $parameters An array of parameters |
53 | - * @param bool|string $referenceType The type of reference to be generated (one of the constants) |
|
53 | + * @param integer $referenceType The type of reference to be generated (one of the constants) |
|
54 | 54 | * |
55 | 55 | * @return string The generated URL |
56 | 56 | * |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | } |
129 | 129 | |
130 | 130 | /** |
131 | - * @return bool |
|
131 | + * @return string|false |
|
132 | 132 | */ |
133 | 133 | private function isWildcardRedirect(Redirect $redirect) |
134 | 134 | { |
@@ -141,6 +141,9 @@ discard block |
||
141 | 141 | return false; |
142 | 142 | } |
143 | 143 | |
144 | + /** |
|
145 | + * @param string $matchSegment |
|
146 | + */ |
|
144 | 147 | private function isPathInfoWildcardMatch($matchSegment) |
145 | 148 | { |
146 | 149 | $path = $this->context->getPathInfo(); |
@@ -8,6 +8,7 @@ |
||
8 | 8 | * Add a SearchProvider to the chain |
9 | 9 | * |
10 | 10 | * @param string $alias |
11 | + * @return void |
|
11 | 12 | */ |
12 | 13 | public function addProvider(SearchProviderInterface $provider, $alias); |
13 | 14 |
@@ -42,7 +42,7 @@ |
||
42 | 42 | } |
43 | 43 | |
44 | 44 | /** |
45 | - * @return \PHPUnit\Framework\MockObject\MockObject|VersionChecker |
|
45 | + * @return string |
|
46 | 46 | */ |
47 | 47 | public function setUpVersionCheckerMock(?array $methods) |
48 | 48 | { |