@@ -91,7 +91,7 @@ |
||
| 91 | 91 | * @param string $type The type of the widget we edit |
| 92 | 92 | * @param int $viewReference The view reference where attach the widget |
| 93 | 93 | * @param string $slot The slot where attach the widget |
| 94 | - * @param null $quantum The quantum number used to avoid same form name |
|
| 94 | + * @param integer $quantum The quantum number used to avoid same form name |
|
| 95 | 95 | * |
| 96 | 96 | * @throws Exception |
| 97 | 97 | * |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | 'options' => [ |
| 51 | 51 | 'choices' => $this->getAllAvailableRoles($this->roleHierarchy), |
| 52 | 52 | 'choices_as_values' => true, |
| 53 | - 'choice_label' => function ($value) { |
|
| 53 | + 'choice_label' => function($value) { |
|
| 54 | 54 | return $value; |
| 55 | 55 | }, |
| 56 | 56 | ], |
@@ -443,7 +443,7 @@ |
||
| 443 | 443 | */ |
| 444 | 444 | private function getPageRoles(View $view) |
| 445 | 445 | { |
| 446 | - $insertAncestorRole = function (View $view = null) use (&$insertAncestorRole) { |
|
| 446 | + $insertAncestorRole = function(View $view = null) use (&$insertAncestorRole) { |
|
| 447 | 447 | if ($view === null) { |
| 448 | 448 | return; |
| 449 | 449 | } |
@@ -190,7 +190,7 @@ |
||
| 190 | 190 | /** |
| 191 | 191 | * Get category. |
| 192 | 192 | * |
| 193 | - * @return string |
|
| 193 | + * @return Category |
|
| 194 | 194 | */ |
| 195 | 195 | public function getCategory() |
| 196 | 196 | { |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | 'class' => 'Victoire\Bundle\BlogBundle\Entity\Blog', |
| 27 | 27 | 'property' => 'name', |
| 28 | 28 | 'preferred_choices' => $options['blog'] ? [$options['blog']] : [], |
| 29 | - 'query_builder' => function (EntityRepository $er) use ($options) { |
|
| 29 | + 'query_builder' => function(EntityRepository $er) use ($options) { |
|
| 30 | 30 | return $er->joinTranslations($options['locale'])->getInstance(); |
| 31 | 31 | }, |
| 32 | 32 | ] |
@@ -22,7 +22,6 @@ discard block |
||
| 22 | 22 | /** |
| 23 | 23 | * Construct. |
| 24 | 24 | * |
| 25 | - * @param EngineInterface $templating |
|
| 26 | 25 | * @param $victoireTwigResponsive |
| 27 | 26 | * @param $kernelRootDir |
| 28 | 27 | * |
@@ -39,9 +38,9 @@ discard block |
||
| 39 | 38 | /** |
| 40 | 39 | * Update css by removing old file and writing new file. |
| 41 | 40 | * |
| 42 | - * @param $oldHash |
|
| 41 | + * @param string $oldHash |
|
| 43 | 42 | * @param View $view |
| 44 | - * @param array $widgets |
|
| 43 | + * @param \Victoire\Bundle\WidgetBundle\Entity\Widget[] $widgets |
|
| 45 | 44 | */ |
| 46 | 45 | public function updateViewCss($oldHash, View $view, array $widgets) |
| 47 | 46 | { |
@@ -159,7 +158,7 @@ discard block |
||
| 159 | 158 | * Write css file. |
| 160 | 159 | * |
| 161 | 160 | * @param $view |
| 162 | - * @param $css |
|
| 161 | + * @param string $css |
|
| 163 | 162 | */ |
| 164 | 163 | private function writeCssFile(View $view, $css) |
| 165 | 164 | { |
@@ -395,7 +395,7 @@ discard block |
||
| 395 | 395 | /** |
| 396 | 396 | * Set viewReferencePage. |
| 397 | 397 | * |
| 398 | - * @param mixed $viewReferencePage |
|
| 398 | + * @param \Victoire\Bundle\PageBundle\Entity\Page $viewReferencePage |
|
| 399 | 399 | * |
| 400 | 400 | * @return Link |
| 401 | 401 | */ |
@@ -427,7 +427,7 @@ discard block |
||
| 427 | 427 | } |
| 428 | 428 | |
| 429 | 429 | /** |
| 430 | - * @return mixed |
|
| 430 | + * @return string |
|
| 431 | 431 | */ |
| 432 | 432 | public function getModalLayout() |
| 433 | 433 | { |
@@ -228,7 +228,7 @@ discard block |
||
| 228 | 228 | /** |
| 229 | 229 | * Get template. |
| 230 | 230 | * |
| 231 | - * @return View |
|
| 231 | + * @return string |
|
| 232 | 232 | */ |
| 233 | 233 | public function getTemplate() |
| 234 | 234 | { |
@@ -815,7 +815,7 @@ discard block |
||
| 815 | 815 | } |
| 816 | 816 | |
| 817 | 817 | /** |
| 818 | - * @return array |
|
| 818 | + * @return boolean |
|
| 819 | 819 | */ |
| 820 | 820 | public function getRoles() |
| 821 | 821 | { |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | /** |
| 21 | 21 | * Constructor. |
| 22 | 22 | * |
| 23 | - * @param SecurityContext $authorizationChecker |
|
| 23 | + * @param AuthorizationChecker $authorizationChecker |
|
| 24 | 24 | * @param bool $debug The debug variable environment |
| 25 | 25 | * @param Container $container |
| 26 | 26 | */ |