@@ -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); |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | $item = $menu; |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | - $item->addChild('banners', ['route' => 'odiseo_sylius_banner_plugin_admin_banner_index']) |
|
| 25 | + $item->addChild('banners', [ 'route' => 'odiseo_sylius_banner_plugin_admin_banner_index' ]) |
|
| 26 | 26 | ->setLabel('odiseo_sylius_banner_plugin.ui.banners') |
| 27 | 27 | ->setLabelAttribute('icon', 'image') |
| 28 | 28 | ; |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | public function getFunctions(): array |
| 25 | 25 | { |
| 26 | 26 | return [ |
| 27 | - new TwigFunction('banner_slider_name', [$this, 'getBannerSliderName']) |
|
| 27 | + new TwigFunction('banner_slider_name', [ $this, 'getBannerSliderName' ]) |
|
| 28 | 28 | ]; |
| 29 | 29 | } |
| 30 | 30 | |
@@ -16,9 +16,9 @@ |
||
| 16 | 16 | */ |
| 17 | 17 | public function load(array $config, ContainerBuilder $container): void |
| 18 | 18 | { |
| 19 | - $config = $this->processConfiguration($this->getConfiguration([], $container), $config); |
|
| 19 | + $config = $this->processConfiguration($this->getConfiguration([ ], $container), $config); |
|
| 20 | 20 | |
| 21 | - $container->setParameter('odiseo_sylius_banner_plugin.slider', $config['slider']); |
|
| 21 | + $container->setParameter('odiseo_sylius_banner_plugin.slider', $config[ 'slider' ]); |
|
| 22 | 22 | |
| 23 | 23 | $loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
| 24 | 24 | |