@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Oro\Bundle\ImportExportBundle\Reader; |
4 | 4 | |
5 | 5 | use Akeneo\Bundle\BatchBundle\Item\InvalidItemException; |
6 | - |
|
7 | 6 | use Oro\Bundle\ImportExportBundle\Context\ContextInterface; |
8 | 7 | use Oro\Bundle\ImportExportBundle\Exception\InvalidConfigurationException; |
9 | 8 | use Oro\Bundle\ImportExportBundle\Exception\InvalidArgumentException; |
@@ -39,7 +39,7 @@ |
||
39 | 39 | * |
40 | 40 | * @param Collection $object object to normalize |
41 | 41 | * @param mixed $format |
42 | - * @param array $context |
|
42 | + * @param string[] $context |
|
43 | 43 | * @return array |
44 | 44 | */ |
45 | 45 | public function normalize($object, $format = null, array $context = array()) |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use Symfony\Component\Serializer\SerializerAwareInterface; |
6 | 6 | use Symfony\Component\Serializer\SerializerInterface; |
7 | 7 | use Symfony\Component\Serializer\Exception\InvalidArgumentException; |
8 | - |
|
9 | 8 | use Doctrine\Common\Collections\ArrayCollection; |
10 | 9 | use Doctrine\Common\Collections\Collection; |
11 | 10 |
@@ -3,11 +3,9 @@ |
||
3 | 3 | namespace Oro\Bundle\ImportExportBundle\Serializer\Normalizer; |
4 | 4 | |
5 | 5 | use Doctrine\Common\Util\ClassUtils; |
6 | - |
|
7 | 6 | use Symfony\Component\Serializer\SerializerAwareInterface; |
8 | 7 | use Symfony\Component\Serializer\SerializerInterface; |
9 | 8 | use Symfony\Component\Serializer\Exception\InvalidArgumentException; |
10 | - |
|
11 | 9 | use Oro\Bundle\ImportExportBundle\Field\FieldHelper; |
12 | 10 | |
13 | 11 | class ConfigurableEntityNormalizer extends AbstractContextModeAwareNormalizer implements SerializerAwareInterface |
@@ -145,6 +145,7 @@ discard block |
||
145 | 145 | |
146 | 146 | /** |
147 | 147 | * {@inheritdoc} |
148 | + * @param string $format |
|
148 | 149 | */ |
149 | 150 | private function normalizeObject($object, $format = null, array $context = []) |
150 | 151 | { |
@@ -179,6 +180,7 @@ discard block |
||
179 | 180 | |
180 | 181 | /** |
181 | 182 | * {@inheritdoc} |
183 | + * @param string $format |
|
182 | 184 | */ |
183 | 185 | private function getNormalizer($data, $format = null, array $context = []) |
184 | 186 | { |
@@ -200,6 +202,8 @@ discard block |
||
200 | 202 | |
201 | 203 | /** |
202 | 204 | * {@inheritdoc} |
205 | + * @param string $type |
|
206 | + * @param string $format |
|
203 | 207 | */ |
204 | 208 | private function getDenormalizer($data, $type, $format = null, array $context = []) |
205 | 209 | { |
@@ -3,12 +3,10 @@ |
||
3 | 3 | namespace Oro\Bundle\ImportExportBundle\Serializer; |
4 | 4 | |
5 | 5 | use Doctrine\Common\Collections\Collection; |
6 | - |
|
7 | 6 | use Symfony\Component\Serializer\Exception\RuntimeException; |
8 | 7 | use Symfony\Component\Serializer\Serializer as BaseSerializer; |
9 | 8 | use Symfony\Component\Serializer\Exception\UnexpectedValueException; |
10 | 9 | use Symfony\Component\Serializer\Exception\LogicException; |
11 | - |
|
12 | 10 | use Oro\Bundle\ImportExportBundle\Serializer\Normalizer\DenormalizerInterface; |
13 | 11 | use Oro\Bundle\ImportExportBundle\Serializer\Normalizer\NormalizerInterface; |
14 | 12 |
@@ -3,9 +3,7 @@ |
||
3 | 3 | namespace Oro\Bundle\ImportExportBundle\Strategy\Import; |
4 | 4 | |
5 | 5 | use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
6 | - |
|
7 | 6 | use Doctrine\Common\Util\ClassUtils; |
8 | - |
|
9 | 7 | use Oro\Bundle\ImportExportBundle\Strategy\StrategyInterface; |
10 | 8 | use Oro\Bundle\ImportExportBundle\Event\StrategyEvent; |
11 | 9 | use Oro\Bundle\ImportExportBundle\Field\DatabaseHelper; |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Oro\Bundle\ImportExportBundle\Tests\Unit\File; |
4 | 4 | |
5 | 5 | use Doctrine\ORM\Mapping\ClassMetadata; |
6 | - |
|
7 | 6 | use Oro\Bundle\ImportExportBundle\Field\DatabaseHelper; |
8 | 7 | use Oro\Bundle\ImportExportBundle\Tests\Unit\Fixtures\TestEntity; |
9 | 8 | use Oro\Bundle\ImportExportBundle\Tests\Unit\Fixtures\TestOrganization; |
@@ -6,7 +6,6 @@ |
||
6 | 6 | use Akeneo\Bundle\BatchBundle\Item\ItemProcessorInterface; |
7 | 7 | use Akeneo\Bundle\BatchBundle\Item\ItemReaderInterface; |
8 | 8 | use Akeneo\Bundle\BatchBundle\Item\ItemWriterInterface; |
9 | - |
|
10 | 9 | use Oro\Bundle\ImportExportBundle\Job\JobExecutor; |
11 | 10 | use Oro\Bundle\ImportExportBundle\Job\Step\PostProcessItemStep; |
12 | 11 |
@@ -7,7 +7,6 @@ |
||
7 | 7 | use Akeneo\Bundle\BatchBundle\Item\ItemProcessorInterface; |
8 | 8 | use Akeneo\Bundle\BatchBundle\Item\ItemReaderInterface; |
9 | 9 | use Akeneo\Bundle\BatchBundle\Item\ItemWriterInterface; |
10 | - |
|
11 | 10 | use Oro\Bundle\ImportExportBundle\Job\JobExecutor; |
12 | 11 | use Oro\Bundle\ImportExportBundle\Job\JobResult; |
13 | 12 | use Oro\Bundle\ImportExportBundle\Job\Step\PostProcessStepExecutor; |
@@ -180,7 +180,7 @@ |
||
180 | 180 | |
181 | 181 | /** |
182 | 182 | * @param \PHPUnit_Framework_MockObject_MockObject $context |
183 | - * @return \PHPUnit_Framework_MockObject_MockObject|StepExecution |
|
183 | + * @return StepExecution |
|
184 | 184 | */ |
185 | 185 | protected function getMockStepExecution($context) |
186 | 186 | { |