@@ -123,7 +123,7 @@ |
||
123 | 123 | */ |
124 | 124 | public function themeChangesHomepageTemplateContents(ThemeInterface $theme, $contents) |
125 | 125 | { |
126 | - $file = rtrim($theme->getPath(), '/') . '/SyliusWebBundle/views/Frontend/Homepage/main.html.twig'; |
|
126 | + $file = rtrim($theme->getPath(), '/').'/SyliusWebBundle/views/Frontend/Homepage/main.html.twig'; |
|
127 | 127 | $dir = dirname($file); |
128 | 128 | |
129 | 129 | if (!file_exists($dir)) { |
@@ -63,7 +63,7 @@ |
||
63 | 63 | $this->couponRepository->remove($coupon); |
64 | 64 | |
65 | 65 | throw new \Exception(sprintf('Coupon "%s" has been removed, but it should not.', $coupon->getCode())); |
66 | - } catch(ForeignKeyConstraintViolationException $exception) { |
|
66 | + } catch (ForeignKeyConstraintViolationException $exception) { |
|
67 | 67 | $this->sharedStorage->set('last_exception', $exception); |
68 | 68 | } |
69 | 69 | } |
@@ -151,7 +151,7 @@ |
||
151 | 151 | */ |
152 | 152 | public function theTypeFieldShouldBeDisabled() |
153 | 153 | { |
154 | - $currentPage = $this->currentPageResolver->getCurrentPageWithForm([$this->createPage, $this->updatePage]); |
|
154 | + $currentPage = $this->currentPageResolver->getCurrentPageWithForm([$this->createPage, $this->updatePage]); |
|
155 | 155 | |
156 | 156 | Assert::true( |
157 | 157 | $currentPage->isTypeDisabled(), |
@@ -48,7 +48,7 @@ |
||
48 | 48 | */ |
49 | 49 | public function buildForm(FormBuilderInterface $builder, array $options) |
50 | 50 | { |
51 | - $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) { |
|
51 | + $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) { |
|
52 | 52 | // Adding dynamically created isoName field |
53 | 53 | $nameOptions = [ |
54 | 54 | 'label' => 'sylius.form.country.name', |
@@ -352,7 +352,7 @@ discard block |
||
352 | 352 | */ |
353 | 353 | public function getVariants() |
354 | 354 | { |
355 | - return $this->variants->filter(function (BaseVariantInterface $variant) { |
|
355 | + return $this->variants->filter(function(BaseVariantInterface $variant) { |
|
356 | 356 | return !$variant->isMaster(); |
357 | 357 | }); |
358 | 358 | } |
@@ -362,7 +362,7 @@ discard block |
||
362 | 362 | */ |
363 | 363 | public function getAvailableVariants() |
364 | 364 | { |
365 | - return $this->variants->filter(function (VariantInterface $variant) { |
|
365 | + return $this->variants->filter(function(VariantInterface $variant) { |
|
366 | 366 | return !$variant->isMaster() && $variant->isAvailable(); |
367 | 367 | }); |
368 | 368 | } |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | public function load(array $config, ContainerBuilder $container) |
36 | 36 | { |
37 | 37 | $config = $this->processConfiguration($this->getConfiguration($config, $container), $config); |
38 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
38 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
39 | 39 | |
40 | 40 | $this->registerResources('sylius', $config['driver'], $config['resources'], $container); |
41 | 41 | |
@@ -88,10 +88,10 @@ discard block |
||
88 | 88 | foreach ($elasticaConfig['indexes'] as $index => $config) { |
89 | 89 | if (array_key_exists('product', $config['types'])) { |
90 | 90 | $elasticaProductListenerDefinition = new Definition(ElasticaProductListener::class); |
91 | - $elasticaProductListenerDefinition->addArgument(new Reference('fos_elastica.object_persister.' . $index . '.product')); |
|
91 | + $elasticaProductListenerDefinition->addArgument(new Reference('fos_elastica.object_persister.'.$index.'.product')); |
|
92 | 92 | $elasticaProductListenerDefinition->addTag('doctrine.event_subscriber'); |
93 | 93 | |
94 | - $container->setDefinition('sylius_product.listener.index_' . $index . '.product_update', $elasticaProductListenerDefinition); |
|
94 | + $container->setDefinition('sylius_product.listener.index_'.$index.'.product_update', $elasticaProductListenerDefinition); |
|
95 | 95 | } |
96 | 96 | } |
97 | 97 | } |