@@ -6,9 +6,7 @@ |
||
6 | 6 | use Symfony\Component\Form\FormInterface; |
7 | 7 | use Symfony\Component\HttpFoundation\Request; |
8 | 8 | use Symfony\Component\Security\Core\SecurityContextInterface; |
9 | - |
|
10 | 9 | use Oro\Bundle\OrganizationBundle\Entity\Organization; |
11 | - |
|
12 | 10 | use OroCRM\Bundle\MagentoBundle\Entity\Order; |
13 | 11 | use OroCRM\Bundle\MagentoBundle\Entity\OrderAddress; |
14 | 12 | use OroCRM\Bundle\MagentoBundle\Entity\OrderItem; |
@@ -3,10 +3,8 @@ |
||
3 | 3 | namespace OroCRM\Bundle\MagentoBundle\Form\Handler; |
4 | 4 | |
5 | 5 | use Doctrine\Bundle\DoctrineBundle\Registry; |
6 | - |
|
7 | 6 | use Symfony\Component\Form\FormInterface; |
8 | 7 | use Symfony\Component\HttpFoundation\Request; |
9 | - |
|
10 | 8 | use OroCRM\Bundle\MagentoBundle\Entity\OrderItem; |
11 | 9 | |
12 | 10 | class OrderItemHandler |
@@ -9,7 +9,7 @@ |
||
9 | 9 | /** |
10 | 10 | * Return currency from given row |
11 | 11 | * |
12 | - * @return callable |
|
12 | + * @return \Closure |
|
13 | 13 | */ |
14 | 14 | public static function getResolverCurrencyClosure() |
15 | 15 | { |
@@ -63,7 +63,7 @@ |
||
63 | 63 | } |
64 | 64 | |
65 | 65 | /** |
66 | - * @param string|int $gender |
|
66 | + * @param boolean|string $gender |
|
67 | 67 | * @return null|string |
68 | 68 | */ |
69 | 69 | protected function getOroGender($gender) |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace OroCRM\Bundle\MagentoBundle\ImportExport\Serializer\Normalizer; |
4 | 4 | |
5 | 5 | use Symfony\Component\Serializer\Exception\RuntimeException; |
6 | - |
|
7 | 6 | use Oro\Bundle\ImportExportBundle\Serializer\Normalizer\DateTimeNormalizer as BaseNormalizer; |
8 | 7 | use Oro\Bundle\ImportExportBundle\Serializer\Normalizer\DenormalizerInterface; |
9 | 8 | use Oro\Bundle\ImportExportBundle\Serializer\Normalizer\NormalizerInterface; |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Oro\Bundle\AddressBundle\Entity\Region as BAPRegion; |
6 | 6 | use Oro\Bundle\ImportExportBundle\Serializer\Normalizer\DenormalizerInterface; |
7 | - |
|
8 | 7 | use OroCRM\Bundle\MagentoBundle\Entity\Region; |
9 | 8 | use OroCRM\Bundle\MagentoBundle\Provider\MagentoConnectorInterface; |
10 | 9 |
@@ -160,7 +160,7 @@ |
||
160 | 160 | |
161 | 161 | /** |
162 | 162 | * @param Cart $entity |
163 | - * @return null |
|
163 | + * @return boolean |
|
164 | 164 | */ |
165 | 165 | protected function hasContactInfo(Cart $entity) |
166 | 166 | { |
@@ -3,10 +3,8 @@ |
||
3 | 3 | namespace OroCRM\Bundle\MagentoBundle\ImportExport\Strategy; |
4 | 4 | |
5 | 5 | use Doctrine\Common\Collections\ArrayCollection; |
6 | - |
|
7 | 6 | use Oro\Bundle\AddressBundle\Entity\Region; |
8 | 7 | use Oro\Bundle\IntegrationBundle\Entity\Channel; |
9 | - |
|
10 | 8 | use OroCRM\Bundle\MagentoBundle\Entity\Cart; |
11 | 9 | use OroCRM\Bundle\MagentoBundle\Entity\CartAddress; |
12 | 10 | use OroCRM\Bundle\MagentoBundle\Entity\CartStatus; |
@@ -3,13 +3,11 @@ |
||
3 | 3 | namespace OroCRM\Bundle\MagentoBundle\ImportExport\Strategy\StrategyHelper; |
4 | 4 | |
5 | 5 | use Akeneo\Bundle\BatchBundle\Item\InvalidItemException; |
6 | - |
|
7 | 6 | use Oro\Bundle\AddressBundle\Entity\Country; |
8 | 7 | use Oro\Bundle\AddressBundle\Entity\AddressType; |
9 | 8 | use Oro\Bundle\AddressBundle\Entity\Region as BAPRegion; |
10 | 9 | use Oro\Bundle\AddressBundle\Entity\AbstractAddress; |
11 | 10 | use Oro\Bundle\AddressBundle\Entity\AbstractTypedAddress; |
12 | - |
|
13 | 11 | use OroCRM\Bundle\MagentoBundle\Entity\Region; |
14 | 12 | |
15 | 13 | class AddressImportHelper |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | /** |
24 | 24 | * @param mixed $entity New entity |
25 | 25 | * @param string $entityName Class name |
26 | - * @param string|array $criteria Fieldname to find existing entity |
|
26 | + * @param string $criteria Fieldname to find existing entity |
|
27 | 27 | * @param array $excludedProperties Excluded properties |
28 | 28 | * |
29 | 29 | * @return mixed |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | } |
96 | 96 | |
97 | 97 | /** |
98 | - * @param $entityName |
|
98 | + * @param string $entityName |
|
99 | 99 | * |
100 | 100 | * @return \Doctrine\ORM\EntityManager |
101 | 101 | */ |
@@ -5,9 +5,7 @@ |
||
5 | 5 | use Doctrine\ORM\UnitOfWork; |
6 | 6 | use Doctrine\ORM\EntityRepository; |
7 | 7 | use Doctrine\ORM\Mapping\ClassMetadataInfo; |
8 | - |
|
9 | 8 | use Symfony\Component\Security\Core\Util\ClassUtils; |
10 | - |
|
11 | 9 | use Oro\Bundle\ImportExportBundle\Strategy\Import\ImportStrategyHelper; |
12 | 10 | |
13 | 11 | class DoctrineHelper |