@@ -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 | */ |
@@ -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 | { |
@@ -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 | { |
@@ -432,7 +432,7 @@ |
||
| 432 | 432 | /** |
| 433 | 433 | * Set image. |
| 434 | 434 | * |
| 435 | - * @param string|Media $image |
|
| 435 | + * @param Media $image |
|
| 436 | 436 | * |
| 437 | 437 | * @return $this |
| 438 | 438 | */ |
@@ -193,7 +193,7 @@ |
||
| 193 | 193 | * |
| 194 | 194 | * @param Widget $widget |
| 195 | 195 | * |
| 196 | - * @return mixed |
|
| 196 | + * @return string |
|
| 197 | 197 | */ |
| 198 | 198 | public function renderStyle(Widget $widget) |
| 199 | 199 | { |
@@ -40,14 +40,14 @@ |
||
| 40 | 40 | ->add('image', 'media'); |
| 41 | 41 | |
| 42 | 42 | // manage conditional related status in preset data |
| 43 | - $builder->get('status')->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) { |
|
| 43 | + $builder->get('status')->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) { |
|
| 44 | 44 | $data = $event->getData(); |
| 45 | 45 | $form = $event->getForm(); |
| 46 | 46 | self::manageRelatedStatus($data, $form->getParent()); |
| 47 | 47 | }); |
| 48 | 48 | |
| 49 | 49 | // manage conditional related status in pre submit (ajax call to refresh view) |
| 50 | - $builder->get('status')->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) { |
|
| 50 | + $builder->get('status')->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) { |
|
| 51 | 51 | $form = $event->getForm(); |
| 52 | 52 | $data = $event->getData(); |
| 53 | 53 | self::manageRelatedStatus($data, $form->getParent()); |