@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | /** |
| 123 | 123 | * render a list element from the FieldDescription. |
| 124 | 124 | * |
| 125 | - * @param mixed $object |
|
| 125 | + * @param \stdClass $object |
|
| 126 | 126 | * @param FieldDescriptionInterface $fieldDescription |
| 127 | 127 | * @param array $params |
| 128 | 128 | * |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | * render a view element. |
| 153 | 153 | * |
| 154 | 154 | * @param FieldDescriptionInterface $fieldDescription |
| 155 | - * @param mixed $object |
|
| 155 | + * @param \stdClass $object |
|
| 156 | 156 | * |
| 157 | 157 | * @return string |
| 158 | 158 | */ |
@@ -291,7 +291,7 @@ discard block |
||
| 291 | 291 | /** |
| 292 | 292 | * Get the identifiers as a string that is safe to use in a url. |
| 293 | 293 | * |
| 294 | - * @param object $model |
|
| 294 | + * @param \stdClass $model |
|
| 295 | 295 | * @param AdminInterface $admin |
| 296 | 296 | * |
| 297 | 297 | * @return string string representation of the id that is safe to use in a url |
@@ -316,7 +316,7 @@ discard block |
||
| 316 | 316 | /** |
| 317 | 317 | * @param $type |
| 318 | 318 | * |
| 319 | - * @return string|bool |
|
| 319 | + * @return string|false |
|
| 320 | 320 | */ |
| 321 | 321 | public function getXEditableType($type) |
| 322 | 322 | { |
@@ -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 | private function getTemplate( |
| 453 | 453 | FieldDescriptionInterface $fieldDescription, |
@@ -1910,6 +1910,8 @@ discard block |
||
| 1910 | 1910 | |
| 1911 | 1911 | /** |
| 1912 | 1912 | * {@inheritdoc} |
| 1913 | + * @param string $id |
|
| 1914 | + * @param string $domain |
|
| 1913 | 1915 | */ |
| 1914 | 1916 | public function trans($id, array $parameters = array(), $domain = null, $locale = null) |
| 1915 | 1917 | { |
@@ -2162,7 +2164,7 @@ discard block |
||
| 2162 | 2164 | * |
| 2163 | 2165 | * @param string $context |
| 2164 | 2166 | * |
| 2165 | - * @return array |
|
| 2167 | + * @return string[] |
|
| 2166 | 2168 | */ |
| 2167 | 2169 | public function getPermissionsShow($context) |
| 2168 | 2170 | { |
@@ -2406,7 +2408,7 @@ discard block |
||
| 2406 | 2408 | /** |
| 2407 | 2409 | * Set custom per page options. |
| 2408 | 2410 | * |
| 2409 | - * @param array $options |
|
| 2411 | + * @param integer[] $options |
|
| 2410 | 2412 | */ |
| 2411 | 2413 | public function setPerPageOptions(array $options) |
| 2412 | 2414 | { |
@@ -13,7 +13,6 @@ discard block |
||
| 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; |
@@ -43,7 +42,6 @@ discard block |
||
| 43 | 42 | use Symfony\Component\Routing\Generator\UrlGeneratorInterface as RoutingUrlGeneratorInterface; |
| 44 | 43 | use Symfony\Component\Security\Acl\Model\DomainObjectInterface; |
| 45 | 44 | use Symfony\Component\Security\Core\Exception\AccessDeniedException; |
| 46 | -use Symfony\Component\Translation\TranslatorInterface; |
|
| 47 | 45 | use Symfony\Component\Validator\Validator\ValidatorInterface; |
| 48 | 46 | use Symfony\Component\Validator\ValidatorInterface as LegacyValidatorInterface; |
| 49 | 47 | |
@@ -62,6 +62,7 @@ |
||
| 62 | 62 | |
| 63 | 63 | /** |
| 64 | 64 | * {@inheritdoc} |
| 65 | + * @param string $action |
|
| 65 | 66 | */ |
| 66 | 67 | public function configureSideMenu(AdminInterface $admin, MenuItemInterface $menu, $action, AdminInterface $childAdmin = null) |
| 67 | 68 | { |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | use Symfony\Component\Form\AbstractType; |
| 15 | 15 | use Symfony\Component\Form\FormBuilderInterface; |
| 16 | 16 | use Symfony\Component\OptionsResolver\OptionsResolver; |
| 17 | -use Symfony\Component\OptionsResolver\OptionsResolverInterface; |
|
| 18 | 17 | use Symfony\Component\Security\Core\User\UserInterface; |
| 19 | 18 | |
| 20 | 19 | /** |
@@ -15,7 +15,6 @@ |
||
| 15 | 15 | use Symfony\Component\Form\FormBuilderInterface; |
| 16 | 16 | use Symfony\Component\OptionsResolver\OptionsResolver; |
| 17 | 17 | use Symfony\Component\OptionsResolver\OptionsResolverInterface; |
| 18 | -use Symfony\Component\Translation\TranslatorInterface; |
|
| 19 | 18 | |
| 20 | 19 | /** |
| 21 | 20 | * @author Thomas Rabaix <[email protected]> |
@@ -23,7 +23,6 @@ |
||
| 23 | 23 | use Symfony\Component\Form\FormView; |
| 24 | 24 | use Symfony\Component\OptionsResolver\Options; |
| 25 | 25 | use Symfony\Component\OptionsResolver\OptionsResolver; |
| 26 | -use Symfony\Component\OptionsResolver\OptionsResolverInterface; |
|
| 27 | 26 | use Symfony\Component\PropertyAccess\PropertyAccessorInterface; |
| 28 | 27 | |
| 29 | 28 | /** |