@@ -1165,6 +1165,8 @@ discard block |
||
| 1165 | 1165 | |
| 1166 | 1166 | /** |
| 1167 | 1167 | * {@inheritdoc} |
| 1168 | + * @param string $name |
|
| 1169 | + * @param string $adminCode |
|
| 1168 | 1170 | */ |
| 1169 | 1171 | public function isCurrentRoute($name, $adminCode = null) |
| 1170 | 1172 | { |
@@ -2448,7 +2450,7 @@ discard block |
||
| 2448 | 2450 | * |
| 2449 | 2451 | * @param string $context |
| 2450 | 2452 | * |
| 2451 | - * @return array |
|
| 2453 | + * @return string[] |
|
| 2452 | 2454 | */ |
| 2453 | 2455 | public function getPermissionsShow($context) |
| 2454 | 2456 | { |
@@ -2692,7 +2694,7 @@ discard block |
||
| 2692 | 2694 | /** |
| 2693 | 2695 | * Set custom per page options. |
| 2694 | 2696 | * |
| 2695 | - * @param array $options |
|
| 2697 | + * @param integer[] $options |
|
| 2696 | 2698 | */ |
| 2697 | 2699 | public function setPerPageOptions(array $options) |
| 2698 | 2700 | { |
@@ -2854,6 +2856,7 @@ discard block |
||
| 2854 | 2856 | |
| 2855 | 2857 | /** |
| 2856 | 2858 | * {@inheritdoc} |
| 2859 | + * @param string $action |
|
| 2857 | 2860 | */ |
| 2858 | 2861 | public function configureActionButtons($action, $object = null) |
| 2859 | 2862 | { |
@@ -2985,7 +2988,6 @@ discard block |
||
| 2985 | 2988 | } |
| 2986 | 2989 | |
| 2987 | 2990 | /** |
| 2988 | - * @param FormMapper $form |
|
| 2989 | 2991 | */ |
| 2990 | 2992 | final public function getSearchResultLink($object) |
| 2991 | 2993 | { |
@@ -3102,7 +3104,7 @@ discard block |
||
| 3102 | 3104 | * NEXT_MAJOR: remove this method. |
| 3103 | 3105 | * |
| 3104 | 3106 | * @param MenuItemInterface $menu |
| 3105 | - * @param $action |
|
| 3107 | + * @param string $action |
|
| 3106 | 3108 | * @param AdminInterface $childAdmin |
| 3107 | 3109 | * |
| 3108 | 3110 | * @return mixed |
@@ -13,7 +13,6 @@ |
||
| 13 | 13 | |
| 14 | 14 | use Doctrine\Common\Util\ClassUtils; |
| 15 | 15 | use Knp\Menu\FactoryInterface as MenuFactoryInterface; |
| 16 | -use Knp\Menu\ItemInterface; |
|
| 17 | 16 | use Knp\Menu\ItemInterface as MenuItemInterface; |
| 18 | 17 | use Sonata\AdminBundle\Builder\DatagridBuilderInterface; |
| 19 | 18 | use Sonata\AdminBundle\Builder\FormContractorInterface; |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | - * @return array |
|
| 33 | + * @return FieldDescriptionInterface[] |
|
| 34 | 34 | */ |
| 35 | 35 | public function getElements() |
| 36 | 36 | { |
@@ -278,7 +278,7 @@ discard block |
||
| 278 | 278 | } |
| 279 | 279 | |
| 280 | 280 | /** |
| 281 | - * @param array $adminServiceIds |
|
| 281 | + * @param string[] $adminServiceIds |
|
| 282 | 282 | */ |
| 283 | 283 | public function setAdminServiceIds(array $adminServiceIds) |
| 284 | 284 | { |
@@ -286,7 +286,7 @@ discard block |
||
| 286 | 286 | } |
| 287 | 287 | |
| 288 | 288 | /** |
| 289 | - * @return array |
|
| 289 | + * @return string[] |
|
| 290 | 290 | */ |
| 291 | 291 | public function getAdminServiceIds() |
| 292 | 292 | { |
@@ -318,7 +318,7 @@ discard block |
||
| 318 | 318 | } |
| 319 | 319 | |
| 320 | 320 | /** |
| 321 | - * @return array |
|
| 321 | + * @return string[] |
|
| 322 | 322 | */ |
| 323 | 323 | public function getTemplates() |
| 324 | 324 | { |
@@ -58,6 +58,7 @@ discard block |
||
| 58 | 58 | |
| 59 | 59 | /** |
| 60 | 60 | * {@inheritdoc} |
| 61 | + * @param null|string $view |
|
| 61 | 62 | */ |
| 62 | 63 | public function render($view, array $parameters = [], Response $response = null) |
| 63 | 64 | { |
@@ -154,7 +155,7 @@ discard block |
||
| 154 | 155 | /** |
| 155 | 156 | * Delete action. |
| 156 | 157 | * |
| 157 | - * @param int|string|null $id |
|
| 158 | + * @param integer|null $id |
|
| 158 | 159 | * |
| 159 | 160 | * @return Response|RedirectResponse |
| 160 | 161 | * |
@@ -673,7 +674,7 @@ discard block |
||
| 673 | 674 | /** |
| 674 | 675 | * View history revision of object. |
| 675 | 676 | * |
| 676 | - * @param int|string|null $id |
|
| 677 | + * @param null|integer $id |
|
| 677 | 678 | * @param string|null $revision |
| 678 | 679 | * |
| 679 | 680 | * @return Response |
@@ -733,9 +734,9 @@ discard block |
||
| 733 | 734 | /** |
| 734 | 735 | * Compare history revisions of object. |
| 735 | 736 | * |
| 736 | - * @param int|string|null $id |
|
| 737 | - * @param int|string|null $base_revision |
|
| 738 | - * @param int|string|null $compare_revision |
|
| 737 | + * @param null|integer $id |
|
| 738 | + * @param null|integer $base_revision |
|
| 739 | + * @param null|integer $compare_revision |
|
| 739 | 740 | * |
| 740 | 741 | * @return Response |
| 741 | 742 | * |
@@ -459,7 +459,7 @@ discard block |
||
| 459 | 459 | * Returns a parameter. |
| 460 | 460 | * |
| 461 | 461 | * @param string $name |
| 462 | - * @param mixed $default |
|
| 462 | + * @param null|string $default |
|
| 463 | 463 | * |
| 464 | 464 | * @return mixed |
| 465 | 465 | */ |
@@ -484,7 +484,7 @@ discard block |
||
| 484 | 484 | * Sets a parameter. |
| 485 | 485 | * |
| 486 | 486 | * @param string $name |
| 487 | - * @param mixed $value |
|
| 487 | + * @param string $value |
|
| 488 | 488 | */ |
| 489 | 489 | public function setParameter($name, $value) |
| 490 | 490 | { |
@@ -595,7 +595,7 @@ discard block |
||
| 595 | 595 | } |
| 596 | 596 | |
| 597 | 597 | /** |
| 598 | - * @param array $countColumn |
|
| 598 | + * @param string[] $countColumn |
|
| 599 | 599 | * |
| 600 | 600 | * @return array |
| 601 | 601 | */ |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | * |
| 51 | 51 | * @param ModelChoiceList|LazyChoiceList|ModelChoiceLoader $choiceList |
| 52 | 52 | * @param ModelManagerInterface $modelManager |
| 53 | - * @param $class |
|
| 53 | + * @param string $class |
|
| 54 | 54 | * |
| 55 | 55 | * @throws RuntimeException |
| 56 | 56 | */ |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | |
| 39 | 39 | /** |
| 40 | 40 | * @param ModelManagerInterface $modelManager |
| 41 | - * @param array|string $skeletonDirectories |
|
| 41 | + * @param string $skeletonDirectories |
|
| 42 | 42 | */ |
| 43 | 43 | public function __construct(ModelManagerInterface $modelManager, $skeletonDirectories) |
| 44 | 44 | { |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | private $file; |
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | - * @param array|string $skeletonDirectory |
|
| 34 | + * @param string $skeletonDirectory |
|
| 35 | 35 | */ |
| 36 | 36 | public function __construct($skeletonDirectory) |
| 37 | 37 | { |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | /** |
| 124 | 124 | * render a list element from the FieldDescription. |
| 125 | 125 | * |
| 126 | - * @param mixed $object |
|
| 126 | + * @param \stdClass $object |
|
| 127 | 127 | * @param FieldDescriptionInterface $fieldDescription |
| 128 | 128 | * @param array $params |
| 129 | 129 | * |
@@ -226,7 +226,7 @@ discard block |
||
| 226 | 226 | * render a view element. |
| 227 | 227 | * |
| 228 | 228 | * @param FieldDescriptionInterface $fieldDescription |
| 229 | - * @param mixed $object |
|
| 229 | + * @param \stdClass $object |
|
| 230 | 230 | * |
| 231 | 231 | * @return string |
| 232 | 232 | */ |
@@ -365,7 +365,7 @@ discard block |
||
| 365 | 365 | /** |
| 366 | 366 | * Get the identifiers as a string that is safe to use in a url. |
| 367 | 367 | * |
| 368 | - * @param object $model |
|
| 368 | + * @param \stdClass $model |
|
| 369 | 369 | * @param AdminInterface $admin |
| 370 | 370 | * |
| 371 | 371 | * @return string string representation of the id that is safe to use in a url |
@@ -390,7 +390,7 @@ discard block |
||
| 390 | 390 | /** |
| 391 | 391 | * @param $type |
| 392 | 392 | * |
| 393 | - * @return string|bool |
|
| 393 | + * @return string|false |
|
| 394 | 394 | */ |
| 395 | 395 | public function getXEditableType($type) |
| 396 | 396 | { |
@@ -447,7 +447,7 @@ discard block |
||
| 447 | 447 | * @param FieldDescriptionInterface $fieldDescription |
| 448 | 448 | * @param string $defaultTemplate |
| 449 | 449 | * |
| 450 | - * @return \Twig_TemplateInterface |
|
| 450 | + * @return \Twig_Template |
|
| 451 | 451 | */ |
| 452 | 452 | protected function getTemplate( |
| 453 | 453 | FieldDescriptionInterface $fieldDescription, |