@@ -152,7 +152,7 @@ |
||
| 152 | 152 | while ($file = readdir($openFolder)) { |
| 153 | 153 | if ($file != '.' && $file != '..') { |
| 154 | 154 | // Remove file |
| 155 | - $recursiveDelete = function ($str) use (&$recursiveDelete) { |
|
| 155 | + $recursiveDelete = function($str) use (&$recursiveDelete) { |
|
| 156 | 156 | if (is_file($str)) { |
| 157 | 157 | return @unlink($str); |
| 158 | 158 | } elseif (is_dir($str)) { |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | { |
| 20 | 20 | ob_start(); |
| 21 | 21 | $loader = $this; |
| 22 | - $includeWrapper = function () use ($file, $loader) { |
|
| 22 | + $includeWrapper = function() use ($file, $loader) { |
|
| 23 | 23 | return include $file; |
| 24 | 24 | }; |
| 25 | 25 | $data = $includeWrapper(); |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | * Generate a seo for the page using the current entity. |
| 62 | 62 | * |
| 63 | 63 | * @param Page $page |
| 64 | - * @param Entity $entity |
|
| 64 | + * @param \Victoire\Bundle\BusinessEntityBundle\Entity\BusinessEntityInterface $entity |
|
| 65 | 65 | */ |
| 66 | 66 | public function updateSeoByEntity(BasePage $page, $entity) |
| 67 | 67 | { |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | /** |
| 125 | 125 | * Get categories. |
| 126 | 126 | * |
| 127 | - * @return string |
|
| 127 | + * @return ArrayCollection |
|
| 128 | 128 | */ |
| 129 | 129 | public function getCategories() |
| 130 | 130 | { |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | } |
| 177 | 177 | |
| 178 | 178 | /** |
| 179 | - * @return string |
|
| 179 | + * @return ArrayCollection |
|
| 180 | 180 | */ |
| 181 | 181 | public function getTags() |
| 182 | 182 | { |
@@ -231,8 +231,8 @@ |
||
| 231 | 231 | } |
| 232 | 232 | |
| 233 | 233 | /** |
| 234 | - * @param $className |
|
| 235 | - * @param $annotationObj |
|
| 234 | + * @param string $className |
|
| 235 | + * @param BusinessEntity $annotationObj |
|
| 236 | 236 | * @param $businessProperties |
| 237 | 237 | * |
| 238 | 238 | * @return ORMBusinessEntity |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | 'attr' => [ |
| 75 | 75 | 'class' => 'add_'.$options['business_entity_id'].'_link picker_entity_select', |
| 76 | 76 | ], |
| 77 | - 'query_builder' => function (EntityRepository $er) use ($businessEntity, $locale) { |
|
| 77 | + 'query_builder' => function(EntityRepository $er) use ($businessEntity, $locale) { |
|
| 78 | 78 | // Don't display entities that don't have translations in the current locale. |
| 79 | 79 | if (in_array(Translatable::class, class_uses($businessEntity->getClass()))) { |
| 80 | 80 | return $er->createQueryBuilder('entity') |
@@ -90,11 +90,11 @@ discard block |
||
| 90 | 90 | |
| 91 | 91 | $builder->get('ressourceId')->addModelTransformer( |
| 92 | 92 | new CallbackTransformer( |
| 93 | - function ($idToEntity) use ($entityManager, $businessEntity) { |
|
| 93 | + function($idToEntity) use ($entityManager, $businessEntity) { |
|
| 94 | 94 | // transform the array to a string |
| 95 | 95 | return $entityManager->getRepository($businessEntity->getClass())->findOneById($idToEntity); |
| 96 | 96 | }, |
| 97 | - function ($entityToId) { |
|
| 97 | + function($entityToId) { |
|
| 98 | 98 | // transform the string back to an array |
| 99 | 99 | return $entityToId->getId(); |
| 100 | 100 | } |
@@ -30,10 +30,10 @@ |
||
| 30 | 30 | |
| 31 | 31 | $builder->addModelTransformer( |
| 32 | 32 | new CallbackTransformer( |
| 33 | - function ($businessEntity) { |
|
| 33 | + function($businessEntity) { |
|
| 34 | 34 | return $businessEntity; |
| 35 | 35 | }, |
| 36 | - function ($nameToBusinessEntity) use ($entityManager) { |
|
| 36 | + function($nameToBusinessEntity) use ($entityManager) { |
|
| 37 | 37 | return $entityManager->getRepository( |
| 38 | 38 | 'VictoireBusinessEntityBundle:BusinessEntity' |
| 39 | 39 | )->findOneByName( |
@@ -128,6 +128,7 @@ discard block |
||
| 128 | 128 | * @param BusinessEntity[] $classes |
| 129 | 129 | * @param int $position |
| 130 | 130 | * @param \Victoire\Bundle\WidgetBundle\Model\Widget $activeWidget |
| 131 | + * @param string $quantum |
|
| 131 | 132 | * |
| 132 | 133 | * @throws \Exception |
| 133 | 134 | * |
@@ -184,6 +185,7 @@ discard block |
||
| 184 | 185 | * @param string $businessEntityId |
| 185 | 186 | * @param string $formMode |
| 186 | 187 | * @param int $position |
| 188 | + * @param string $slotId |
|
| 187 | 189 | * |
| 188 | 190 | * @throws \Exception |
| 189 | 191 | * |
@@ -325,7 +325,7 @@ |
||
| 325 | 325 | } |
| 326 | 326 | |
| 327 | 327 | /** |
| 328 | - * @return WidgetMap[] |
|
| 328 | + * @return Collection |
|
| 329 | 329 | */ |
| 330 | 330 | public function getChildren() |
| 331 | 331 | { |