| @@ -15,7 +15,6 @@ | ||
| 15 | 15 | /** | 
| 16 | 16 | * define supported types. | 
| 17 | 17 | * | 
| 18 | - * @param array $types supported types (text, media, date) | |
| 19 | 18 | **/ | 
| 20 | 19 | public function __construct($data) | 
| 21 | 20 |      { | 
| @@ -405,7 +405,7 @@ | ||
| 405 | 405 | /** | 
| 406 | 406 | * Set viewReferencePage. | 
| 407 | 407 | * | 
| 408 | - * @param mixed $viewReferencePage | |
| 408 | + * @param Page $viewReferencePage | |
| 409 | 409 | * | 
| 410 | 410 | * @return $this | 
| 411 | 411 | */ | 
| @@ -303,7 +303,7 @@ discard block | ||
| 303 | 303 | /** | 
| 304 | 304 | * Get template. | 
| 305 | 305 | * | 
| 306 | - * @return Template | |
| 306 | + * @return string | |
| 307 | 307 | */ | 
| 308 | 308 | public function getTemplate() | 
| 309 | 309 |      { | 
| @@ -631,7 +631,7 @@ discard block | ||
| 631 | 631 | /** | 
| 632 | 632 | * Get widgets. | 
| 633 | 633 | * | 
| 634 | - * @return Widget[] | |
| 634 | + * @return string | |
| 635 | 635 | */ | 
| 636 | 636 | public function getWidgets() | 
| 637 | 637 |      { | 
| @@ -647,7 +647,7 @@ | ||
| 647 | 647 |      { | 
| 648 | 648 | $widgetIds = []; | 
| 649 | 649 | |
| 650 | -        $extractWidgetIds = function ($widgetMap) { | |
| 650 | +        $extractWidgetIds = function($widgetMap) { | |
| 651 | 651 | /* @var $widgetMap WidgetMap */ | 
| 652 | 652 | return $widgetMap->getWidgetId(); | 
| 653 | 653 | }; | 
| @@ -41,7 +41,7 @@ | ||
| 41 | 41 | /** | 
| 42 | 42 | * Get SubscribedEvents. | 
| 43 | 43 | * | 
| 44 | - * @return array | |
| 44 | + * @return string[] | |
| 45 | 45 | */ | 
| 46 | 46 | public function getSubscribedEvents() | 
| 47 | 47 |      { | 
| @@ -36,7 +36,7 @@ | ||
| 36 | 36 | * | 
| 37 | 37 | * @param Event $event | 
| 38 | 38 | * | 
| 39 | - * @return Ambigous <\Knp\Menu\ItemInterface, NULL> | |
| 39 | + * @return \Knp\Menu\ItemInterface <\Knp\Menu\ItemInterface, NULL> | |
| 40 | 40 | */ | 
| 41 | 41 | public function addGlobal(Event $event) | 
| 42 | 42 |      { | 
| @@ -62,7 +62,7 @@ discard block | ||
| 62 | 62 | /** | 
| 63 | 63 | * register twig functions. | 
| 64 | 64 | * | 
| 65 | - * @return array The list of extensions | |
| 65 | + * @return \Twig_SimpleFunction[] The list of extensions | |
| 66 | 66 | */ | 
| 67 | 67 | public function getFunctions() | 
| 68 | 68 |      { | 
| @@ -79,7 +79,7 @@ discard block | ||
| 79 | 79 | /** | 
| 80 | 80 | * register twig filters. | 
| 81 | 81 | * | 
| 82 | - * @return array The list of filters | |
| 82 | + * @return \Twig_SimpleFilter[] The list of filters | |
| 83 | 83 | */ | 
| 84 | 84 | public function getFilters() | 
| 85 | 85 |      { | 
| @@ -2,7 +2,6 @@ | ||
| 2 | 2 | |
| 3 | 3 | namespace Victoire\Bundle\PageBundle\Entity\Traits; | 
| 4 | 4 | |
| 5 | -use Victoire\Bundle\CoreBundle\Annotations as Vic; | |
| 6 | 5 | use Victoire\Bundle\CoreBundle\Entity\Route; | 
| 7 | 6 | use Victoire\Bundle\PageBundle\Entity\PageStatus; | 
| 8 | 7 | use Victoire\Bundle\SeoBundle\Entity\PageSeo; | 
| @@ -67,7 +67,7 @@ | ||
| 67 | 67 | * @param BusinessEntityHelper $businessEntityHelper | 
| 68 | 68 | * @param EntityManager $entityManager | 
| 69 | 69 | * @param ViewCacheHelper $viewCacheHelper | 
| 70 | - * @param ViewReferenceBuilderChain $viewReferenceBuilder | |
| 70 | + * @param ViewReferenceBuilder $viewReferenceBuilder | |
| 71 | 71 | * @param CurrentViewHelper $currentViewHelper | 
| 72 | 72 | * @param EventDispatcherInterface $eventDispatcher | 
| 73 | 73 | * @param TemplateMapper $victoireTemplating | 
| @@ -331,7 +331,7 @@ | ||
| 331 | 331 |      { | 
| 332 | 332 | $errorMessage = 'The page was not found'; | 
| 333 | 333 |          if ($parameters) { | 
| 334 | -            array_walk($parameters, function ($key, $parameter) { | |
| 334 | +            array_walk($parameters, function($key, $parameter) { | |
| 335 | 335 | return $key.': '.$parameter; | 
| 336 | 336 | }); | 
| 337 | 337 |              $errorMessage .= ' for parameters '.implode(', ', $parameters); | 
| @@ -866,7 +866,7 @@ | ||
| 866 | 866 | /** | 
| 867 | 867 | * Get sitemapChangeFreq. | 
| 868 | 868 | * | 
| 869 | - * @return float | |
| 869 | + * @return string | |
| 870 | 870 | */ | 
| 871 | 871 | public function getSitemapChangeFreq() | 
| 872 | 872 |      { |