@@ -11,7 +11,6 @@ |
||
| 11 | 11 | |
| 12 | 12 | namespace Sylius\Bundle\CoreBundle\Fixture\Factory; |
| 13 | 13 | |
| 14 | -use Doctrine\Common\Persistence\ObjectManager; |
|
| 15 | 14 | use Sylius\Component\Core\Formatter\StringInflector; |
| 16 | 15 | use Sylius\Component\Core\Model\TaxonInterface; |
| 17 | 16 | use Sylius\Component\Locale\Model\LocaleInterface; |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | /** |
| 97 | - * @return array |
|
| 97 | + * @return \Generator |
|
| 98 | 98 | */ |
| 99 | 99 | private function getLocales() |
| 100 | 100 | { |
@@ -136,7 +136,7 @@ |
||
| 136 | 136 | |
| 137 | 137 | /** @var ImageInterface $taxonImage */ |
| 138 | 138 | $taxonImage = $this->taxonImageFactory->createNew(); |
| 139 | - $taxonImage->setFile(new UploadedFile($filesPath.$imagePath, basename($imagePath))); |
|
| 139 | + $taxonImage->setFile(new UploadedFile($filesPath . $imagePath, basename($imagePath))); |
|
| 140 | 140 | $taxonImage->setType($imageType); |
| 141 | 141 | $this->imageUploader->upload($taxonImage); |
| 142 | 142 | |