@@ -92,10 +92,10 @@ discard block |
||
| 92 | 92 | $channels = $this->channelRepository->findAll(); |
| 93 | 93 | |
| 94 | 94 | /** @var ChannelInterface $channel */ |
| 95 | - foreach($channels as $channel) |
|
| 95 | + foreach ($channels as $channel) |
|
| 96 | 96 | { |
| 97 | 97 | $imageIndex = 1; |
| 98 | - for($i=1; $i <= $options['vendors_per_channel']; $i++) |
|
| 98 | + for ($i = 1; $i <= $options[ 'vendors_per_channel' ]; $i++) |
|
| 99 | 99 | { |
| 100 | 100 | /** @var VendorInterface $vendor */ |
| 101 | 101 | $vendor = $this->vendorFactory->createNew(); |
@@ -112,14 +112,14 @@ discard block |
||
| 112 | 112 | } |
| 113 | 113 | |
| 114 | 114 | $imageFinder = new Finder(); |
| 115 | - $imagesPath = __DIR__ . '/../Resources/fixtures/vendor'; |
|
| 115 | + $imagesPath = __DIR__.'/../Resources/fixtures/vendor'; |
|
| 116 | 116 | |
| 117 | 117 | foreach ($imageFinder->files()->in($imagesPath)->name('0'.$imageIndex.'.png') as $img) |
| 118 | 118 | { |
| 119 | 119 | $file = new UploadedFile($img->getRealPath(), $img->getFilename()); |
| 120 | 120 | $vendor->setLogoFile($file); |
| 121 | 121 | } |
| 122 | - $imageIndex = $imageIndex>=4?1:$imageIndex+1; |
|
| 122 | + $imageIndex = $imageIndex >= 4 ? 1 : $imageIndex + 1; |
|
| 123 | 123 | |
| 124 | 124 | $this->objectManager->persist($vendor); |
| 125 | 125 | } |