@@ -6,9 +6,7 @@ |
||
6 | 6 | use Symfony\Component\Form\FormEvent; |
7 | 7 | use Symfony\Component\Form\FormEvents; |
8 | 8 | use Symfony\Component\EventDispatcher\EventSubscriberInterface; |
9 | - |
|
10 | 9 | use Doctrine\Common\Collections\Collection; |
11 | - |
|
12 | 10 | use Oro\Bundle\FormBundle\Entity\EmptyItem; |
13 | 11 | |
14 | 12 | class CollectionTypeSubscriber implements EventSubscriberInterface |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Oro\Bundle\FormBundle\Form\Extension\JsValidation; |
4 | 4 | |
5 | 5 | use Symfony\Component\Form\FormInterface; |
6 | - |
|
7 | 6 | use Symfony\Component\Validator\Constraint; |
8 | 7 | use Symfony\Component\Validator\Mapping\ClassMetadata; |
9 | 8 | use Symfony\Component\Validator\MetadataFactoryInterface; |
@@ -145,7 +145,7 @@ |
||
145 | 145 | * Gets constraint name based on object |
146 | 146 | * |
147 | 147 | * @param Constraint $constraint |
148 | - * @return mixed|string |
|
148 | + * @return string |
|
149 | 149 | */ |
150 | 150 | protected function getConstraintName(Constraint $constraint) |
151 | 151 | { |
@@ -6,7 +6,6 @@ |
||
6 | 6 | use Symfony\Component\Form\FormView; |
7 | 7 | use Symfony\Component\Form\FormInterface; |
8 | 8 | use Symfony\Component\Validator\Constraint; |
9 | - |
|
10 | 9 | use Oro\Bundle\FormBundle\Form\Extension\JsValidation\ConstraintsProvider; |
11 | 10 | |
12 | 11 | class JsValidationExtension extends AbstractTypeExtension |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Oro\Bundle\FormBundle\Form\Handler; |
4 | 4 | |
5 | 5 | use Doctrine\Common\Persistence\ObjectManager; |
6 | - |
|
7 | 6 | use Symfony\Component\Form\FormInterface; |
8 | 7 | use Symfony\Component\HttpFoundation\Request; |
9 | 8 |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Oro\Bundle\FormBundle\Form\Twig; |
4 | 4 | |
5 | 5 | use Symfony\Component\Form\FormView; |
6 | - |
|
7 | 6 | use Oro\Bundle\FormBundle\Form\Builder\DataBlockBuilder; |
8 | 7 | |
9 | 8 | class DataBlockRenderer |
@@ -6,7 +6,6 @@ |
||
6 | 6 | use Symfony\Component\Form\FormBuilderInterface; |
7 | 7 | use Symfony\Component\Form\FormTypeInterface; |
8 | 8 | use Symfony\Component\OptionsResolver\OptionsResolverInterface; |
9 | - |
|
10 | 9 | use Oro\Bundle\SoapBundle\Form\EventListener\PatchSubscriber; |
11 | 10 | |
12 | 11 | /** |
@@ -7,7 +7,6 @@ |
||
7 | 7 | use Symfony\Component\Form\FormView; |
8 | 8 | use Symfony\Component\OptionsResolver\OptionsResolverInterface; |
9 | 9 | use Symfony\Component\Validator\Constraints\LessThan; |
10 | - |
|
11 | 10 | use Oro\Bundle\LocaleBundle\Model\LocaleSettings; |
12 | 11 | use Oro\Bundle\LocaleBundle\Formatter\NumberFormatter; |
13 | 12 |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | * |
19 | 19 | * @param Collection $object object to normalize |
20 | 20 | * @param mixed $format |
21 | - * @param array $context |
|
21 | + * @param string[] $context |
|
22 | 22 | * @return array |
23 | 23 | */ |
24 | 24 | public function normalize($object, $format = null, array $context = array()) |
@@ -41,10 +41,10 @@ discard block |
||
41 | 41 | /** |
42 | 42 | * Denormalizes and sets primary to first element |
43 | 43 | * |
44 | - * @param mixed $data |
|
44 | + * @param string[] $data |
|
45 | 45 | * @param string $class |
46 | 46 | * @param null $format |
47 | - * @param array $context |
|
47 | + * @param string[] $context |
|
48 | 48 | * @return ArrayCollection |
49 | 49 | */ |
50 | 50 | public function denormalize($data, $class, $format = null, array $context = array()) |
@@ -4,9 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Doctrine\Common\Collections\ArrayCollection; |
6 | 6 | use Doctrine\Common\Collections\Collection; |
7 | - |
|
8 | 7 | use Oro\Bundle\ImportExportBundle\Serializer\Normalizer\CollectionNormalizer; |
9 | - |
|
10 | 8 | use Oro\Bundle\FormBundle\Entity\PrimaryItem; |
11 | 9 | |
12 | 10 | class PrimaryItemCollectionNormalizer extends CollectionNormalizer |
@@ -63,7 +63,7 @@ |
||
63 | 63 | } |
64 | 64 | |
65 | 65 | /** |
66 | - * @param object $entity |
|
66 | + * @param \stdClass $entity |
|
67 | 67 | * @param FormInterface $form |
68 | 68 | * @param array|callable $saveAndStayRoute |
69 | 69 | * @param array|callable $saveAndCloseRoute |
@@ -7,7 +7,6 @@ |
||
7 | 7 | use Symfony\Component\HttpFoundation\Request; |
8 | 8 | use Symfony\Component\HttpFoundation\Session\Session; |
9 | 9 | use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
10 | - |
|
11 | 10 | use Oro\Bundle\EntityBundle\ORM\DoctrineHelper; |
12 | 11 | use Oro\Bundle\UIBundle\Route\Router; |
13 | 12 | use Oro\Bundle\FormBundle\Event\FormHandler\AfterFormProcessEvent; |