@@ -105,7 +105,7 @@ |
||
105 | 105 | * |
106 | 106 | * @param $linkType |
107 | 107 | * @param $locale |
108 | - * @param FormBuilderInterface|FormInterface $form |
|
108 | + * @param FormInterface $form |
|
109 | 109 | * @param FormBuilderInterface $builder |
110 | 110 | */ |
111 | 111 | protected function manageLinkTypeRelatedFields($linkType, $locale, $form, FormBuilderInterface $builder) |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | 'choices_as_values' => true, |
68 | 68 | 'vic_vic_widget_form_group_attr' => ['class' => 'vic-form-group viewReference-type page-type url-type route-type attachedWidget-type'], |
69 | 69 | ]) |
70 | - ->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) use ($builder) { |
|
70 | + ->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) use ($builder) { |
|
71 | 71 | $data = $event->getData(); |
72 | 72 | $form = $event->getForm(); |
73 | 73 | if ($data) { |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | }); |
80 | 80 | |
81 | 81 | $builder |
82 | - ->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) use ($builder) { |
|
82 | + ->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) use ($builder) { |
|
83 | 83 | $form = $event->getForm(); |
84 | 84 | $data = $event->getData(); |
85 | 85 | $locale = isset($data['locale']) ? $data['locale'] : null; |
@@ -59,7 +59,7 @@ |
||
59 | 59 | } |
60 | 60 | |
61 | 61 | /** |
62 | - * @param [] $tree |
|
62 | + * @param WebViewInterface[] $tree |
|
63 | 63 | */ |
64 | 64 | public function buildViewReferenceRecursively($tree, EntityManager $entityManager) |
65 | 65 | { |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | $references = $this->repository->getResults($refsId); |
89 | 89 | foreach ($references as $reference) { |
90 | 90 | if ($transform === true) { |
91 | - $transformViewReferenceFn = function ($parentViewReference) use (&$transformViewReferenceFn, $keepChildren) { |
|
91 | + $transformViewReferenceFn = function($parentViewReference) use (&$transformViewReferenceFn, $keepChildren) { |
|
92 | 92 | $transformer = ViewReferenceManager::findTransformerFromElement($parentViewReference); |
93 | 93 | $reference = $transformer->transform($parentViewReference); |
94 | 94 | if ($keepChildren) { |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | { |
153 | 153 | $viewsReferences = []; |
154 | 154 | |
155 | - $decoratorFn = function ($depth, $char0 = '└', $char = '─') { |
|
155 | + $decoratorFn = function($depth, $char0 = '└', $char = '─') { |
|
156 | 156 | $decorator = $char0; |
157 | 157 | for ($i = 0; $i <= $depth; $i++) { |
158 | 158 | $decorator .= $char; |
@@ -378,7 +378,7 @@ |
||
378 | 378 | /** |
379 | 379 | * Set viewReferencePage. |
380 | 380 | * |
381 | - * @param mixed $viewReferencePage |
|
381 | + * @param \Victoire\Bundle\PageBundle\Entity\Page $viewReferencePage |
|
382 | 382 | * |
383 | 383 | * @return Link |
384 | 384 | */ |
@@ -34,7 +34,7 @@ |
||
34 | 34 | /** |
35 | 35 | * This method save a tree of viewReferences. |
36 | 36 | * |
37 | - * @param array $viewReferences |
|
37 | + * @param \Victoire\Bundle\CoreBundle\Entity\WebViewInterface[] $viewReferences |
|
38 | 38 | * @param string $parentId |
39 | 39 | * @param string $parentLocale |
40 | 40 | * @param bool $reset |
@@ -609,7 +609,7 @@ discard block |
||
609 | 609 | /** |
610 | 610 | * Add widget. |
611 | 611 | * |
612 | - * @param Widget $widgetMap |
|
612 | + * @param WidgetMap $widgetMap |
|
613 | 613 | */ |
614 | 614 | public function addWidgetMap(WidgetMap $widgetMap) |
615 | 615 | { |
@@ -861,7 +861,7 @@ discard block |
||
861 | 861 | } |
862 | 862 | |
863 | 863 | /** |
864 | - * @return ViewTranslation[] |
|
864 | + * @return ArrayCollection |
|
865 | 865 | */ |
866 | 866 | public function getTranslations() |
867 | 867 | { |
@@ -869,7 +869,7 @@ discard block |
||
869 | 869 | } |
870 | 870 | |
871 | 871 | /** |
872 | - * @return ViewTranslation[] |
|
872 | + * @return string |
|
873 | 873 | */ |
874 | 874 | public function getTranslationClass() |
875 | 875 | { |
@@ -118,9 +118,10 @@ discard block |
||
118 | 118 | * |
119 | 119 | * @param string $slot |
120 | 120 | * @param View $view |
121 | - * @param Widget $widget |
|
121 | + * @param Widget $widgets |
|
122 | 122 | * @param BusinessEntity[] $classes |
123 | 123 | * @param int $position |
124 | + * @param \Victoire\Bundle\WidgetBundle\Model\Widget $activeWidget |
|
124 | 125 | * |
125 | 126 | * @throws \Exception |
126 | 127 | * |
@@ -275,6 +276,7 @@ discard block |
||
275 | 276 | * @param string $namespace the namespace |
276 | 277 | * @param string $formMode the form mode |
277 | 278 | * @param int $position |
279 | + * @param string $slotId |
|
278 | 280 | * |
279 | 281 | * @throws \Exception |
280 | 282 | * |
@@ -359,7 +359,7 @@ |
||
359 | 359 | /** |
360 | 360 | * Set widgets. |
361 | 361 | * |
362 | - * @param [WidgetMap] $widgetMaps |
|
362 | + * @param [WidgetMap] $widgetMap |
|
363 | 363 | * |
364 | 364 | * @return Widget |
365 | 365 | */ |
@@ -495,7 +495,7 @@ |
||
495 | 495 | */ |
496 | 496 | public function hasCriteriaNamed($criteriaAlias) |
497 | 497 | { |
498 | - return $this->criterias->exists(function ($key, $element) use ($criteriaAlias) { |
|
498 | + return $this->criterias->exists(function($key, $element) use ($criteriaAlias) { |
|
499 | 499 | return $criteriaAlias === $element->getName(); |
500 | 500 | }); |
501 | 501 | } |
@@ -120,6 +120,9 @@ discard block |
||
120 | 120 | return $this->id; |
121 | 121 | } |
122 | 122 | |
123 | + /** |
|
124 | + * @param null|integer $id |
|
125 | + */ |
|
123 | 126 | public function setId($id) |
124 | 127 | { |
125 | 128 | $this->id = $id; |
@@ -224,7 +227,7 @@ discard block |
||
224 | 227 | } |
225 | 228 | |
226 | 229 | /** |
227 | - * @param mixed $replaced |
|
230 | + * @param WidgetMap $replaced |
|
228 | 231 | */ |
229 | 232 | public function setReplaced($replaced) |
230 | 233 | { |