@@ -24,7 +24,7 @@ |
||
24 | 24 | /** |
25 | 25 | * Returns a list of functions to add to the existing list. |
26 | 26 | * |
27 | - * @return array An array of functions |
|
27 | + * @return \Twig_SimpleFunction[] An array of functions |
|
28 | 28 | */ |
29 | 29 | public function getFunctions() |
30 | 30 | { |
@@ -148,7 +148,7 @@ |
||
148 | 148 | /** |
149 | 149 | * Set parent menu item. |
150 | 150 | * |
151 | - * @param MenuItem|null $parent |
|
151 | + * @param null|\self $parent |
|
152 | 152 | * |
153 | 153 | * @return MenuItem |
154 | 154 | */ |
@@ -27,7 +27,7 @@ |
||
27 | 27 | /** |
28 | 28 | * Get Twig functions defined in this extension. |
29 | 29 | * |
30 | - * @return array |
|
30 | + * @return \Twig_SimpleFunction[] |
|
31 | 31 | */ |
32 | 32 | public function getFunctions() |
33 | 33 | { |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Victoire\Bundle\SitemapBundle\Controller; |
4 | 4 | |
5 | -use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; |
|
6 | 5 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
7 | 6 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
8 | 7 | use Symfony\Component\HttpFoundation\JsonResponse; |
@@ -128,9 +128,10 @@ discard block |
||
128 | 128 | * |
129 | 129 | * @param string $slot |
130 | 130 | * @param View $view |
131 | - * @param Widget $widget |
|
131 | + * @param Widget $widgets |
|
132 | 132 | * @param BusinessEntity[] $classes |
133 | 133 | * @param int $position |
134 | + * @param string $quantum |
|
134 | 135 | * |
135 | 136 | * @throws \Exception |
136 | 137 | * |
@@ -152,10 +153,9 @@ discard block |
||
152 | 153 | /** |
153 | 154 | * Generates style forms for each quantum. |
154 | 155 | * |
155 | - * @param $viewReference |
|
156 | + * @param string|null $viewReference |
|
156 | 157 | * @param ArrayCollection|Widget[] $widgets |
157 | 158 | * @param Widget $activeWidget |
158 | - * @param null $quantum |
|
159 | 159 | * |
160 | 160 | * @return Form[] |
161 | 161 | */ |
@@ -312,7 +312,7 @@ discard block |
||
312 | 312 | * |
313 | 313 | * @param Widget $widget |
314 | 314 | * @param $viewReference |
315 | - * @param $quantum |
|
315 | + * @param string|null $quantum |
|
316 | 316 | * |
317 | 317 | * @throws \Throwable |
318 | 318 | * |
@@ -377,6 +377,7 @@ discard block |
||
377 | 377 | * @param string $namespace the namespace |
378 | 378 | * @param string $formMode the form mode |
379 | 379 | * @param int $position |
380 | + * @param string $slotId |
|
380 | 381 | * |
381 | 382 | * @throws \Exception |
382 | 383 | * |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Doctrine\ORM\EntityManager; |
6 | 6 | use Doctrine\ORM\Mapping\ClassMetadataInfo; |
7 | -use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
|
8 | 7 | use Symfony\Bundle\FrameworkBundle\Templating\EngineInterface; |
9 | 8 | use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
10 | 9 | use Symfony\Component\HttpFoundation\JsonResponse; |
@@ -320,7 +320,7 @@ discard block |
||
320 | 320 | } |
321 | 321 | |
322 | 322 | /** |
323 | - * @return WidgetMap[] |
|
323 | + * @return Collection |
|
324 | 324 | */ |
325 | 325 | public function getChildren() |
326 | 326 | { |
@@ -352,7 +352,7 @@ discard block |
||
352 | 352 | } |
353 | 353 | |
354 | 354 | /** |
355 | - * @return WidgetMap|null |
|
355 | + * @return \self|null |
|
356 | 356 | */ |
357 | 357 | public function getParent() |
358 | 358 | { |
@@ -360,7 +360,7 @@ discard block |
||
360 | 360 | } |
361 | 361 | |
362 | 362 | /** |
363 | - * @param null|WidgetMap $parent |
|
363 | + * @param null|\self $parent |
|
364 | 364 | */ |
365 | 365 | public function setParent(self $parent = null) |
366 | 366 | { |
@@ -200,8 +200,8 @@ |
||
200 | 200 | * @param View $view |
201 | 201 | * @param $beforeChild |
202 | 202 | * @param $afterChild |
203 | - * @param $originalParent |
|
204 | - * @param $originalPosition |
|
203 | + * @param \self|null $originalParent |
|
204 | + * @param string $originalPosition |
|
205 | 205 | */ |
206 | 206 | public function moveChildren(View $view, $beforeChild, $afterChild, $originalParent, $originalPosition) |
207 | 207 | { |
@@ -141,7 +141,7 @@ |
||
141 | 141 | while ($file = readdir($openFolder)) { |
142 | 142 | if ($file != '.' && $file != '..') { |
143 | 143 | // Remove file |
144 | - $recursiveDelete = function ($str) use (&$recursiveDelete) { |
|
144 | + $recursiveDelete = function($str) use (&$recursiveDelete) { |
|
145 | 145 | if (is_file($str)) { |
146 | 146 | return @unlink($str); |
147 | 147 | } elseif (is_dir($str)) { |