@@ -228,7 +228,7 @@ |
||
| 228 | 228 | { |
| 229 | 229 | $this->logoFile = $file; |
| 230 | 230 | |
| 231 | - if(null !== $file) |
|
| 231 | + if (null !== $file) |
|
| 232 | 232 | { |
| 233 | 233 | $this->setUpdatedAt(new \DateTime()); |
| 234 | 234 | } |
@@ -93,10 +93,10 @@ discard block |
||
| 93 | 93 | $channels = $this->channelRepository->findAll(); |
| 94 | 94 | |
| 95 | 95 | /** @var ChannelInterface $channel */ |
| 96 | - foreach($channels as $channel) |
|
| 96 | + foreach ($channels as $channel) |
|
| 97 | 97 | { |
| 98 | 98 | $imageIndex = 1; |
| 99 | - for($i=1; $i <= $options['vendors_per_channel']; $i++) |
|
| 99 | + for ($i = 1; $i <= $options[ 'vendors_per_channel' ]; $i++) |
|
| 100 | 100 | { |
| 101 | 101 | /** @var VendorInterface $vendor */ |
| 102 | 102 | $vendor = $this->vendorFactory->createNew(); |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | } |
| 114 | 114 | |
| 115 | 115 | $imageFinder = new Finder(); |
| 116 | - $imagesPath = __DIR__ . '/../Resources/fixtures/vendor'; |
|
| 116 | + $imagesPath = __DIR__.'/../Resources/fixtures/vendor'; |
|
| 117 | 117 | |
| 118 | 118 | /** @var File $img */ |
| 119 | 119 | foreach ($imageFinder->files()->in($imagesPath)->name('0'.$imageIndex.'.png') as $img) |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | $vendor->setLogoFile($file); |
| 124 | 124 | } |
| 125 | 125 | } |
| 126 | - $imageIndex = $imageIndex>=4?1:$imageIndex+1; |
|
| 126 | + $imageIndex = $imageIndex >= 4 ? 1 : $imageIndex + 1; |
|
| 127 | 127 | |
| 128 | 128 | $this->objectManager->persist($vendor); |
| 129 | 129 | } |