@@ -20,7 +20,7 @@ |
||
| 20 | 20 | $item = $menu; |
| 21 | 21 | } |
| 22 | 22 | |
| 23 | - $item->addChild('banners', ['route' => 'odiseo_sylius_banner_admin_banner_index']) |
|
| 23 | + $item->addChild('banners', [ 'route' => 'odiseo_sylius_banner_admin_banner_index' ]) |
|
| 24 | 24 | ->setLabel('odiseo_sylius_banner.ui.banners') |
| 25 | 25 | ->setLabelAttribute('icon', 'image') |
| 26 | 26 | ; |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | $banner->setUrl($this->faker->url); |
| 153 | 153 | |
| 154 | 154 | $imageFinder = new Finder(); |
| 155 | - $imagesPath = __DIR__ . '/../Resources/fixtures/banner'; |
|
| 155 | + $imagesPath = __DIR__.'/../Resources/fixtures/banner'; |
|
| 156 | 156 | |
| 157 | 157 | foreach ($imageFinder->files()->in($imagesPath)->name('01.png') as $img) { |
| 158 | 158 | /** @var string $path */ |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | /** @var ChannelInterface $channel */ |
| 171 | 171 | foreach ($channels as $channel) { |
| 172 | 172 | $imageIndex = 1; |
| 173 | - for ($i=1; $i <= $options['banners_per_channel']; $i++) { |
|
| 173 | + for ($i = 1; $i <= $options[ 'banners_per_channel' ]; $i++) { |
|
| 174 | 174 | /** @var BannerInterface $banner */ |
| 175 | 175 | $banner = $this->bannerFactory->createNew(); |
| 176 | 176 | |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | $banner->setUrl($this->faker->url); |
| 185 | 185 | |
| 186 | 186 | $imageFinder = new Finder(); |
| 187 | - $imagesPath = __DIR__ . '/../Resources/fixtures/banner'; |
|
| 187 | + $imagesPath = __DIR__.'/../Resources/fixtures/banner'; |
|
| 188 | 188 | |
| 189 | 189 | foreach ($imageFinder->files()->in($imagesPath)->name('0'.$imageIndex.'.png') as $img) { |
| 190 | 190 | /** @var string $path */ |
@@ -194,7 +194,7 @@ discard block |
||
| 194 | 194 | $file = new UploadedFile($path, $filename); |
| 195 | 195 | $banner->setImageFile($file); |
| 196 | 196 | } |
| 197 | - $imageIndex = $imageIndex>=4?1:$imageIndex+1; |
|
| 197 | + $imageIndex = $imageIndex >= 4 ? 1 : $imageIndex+1; |
|
| 198 | 198 | } |
| 199 | 199 | |
| 200 | 200 | $this->objectManager->persist($banner); |