Completed
Pull Request — master (#16)
by Kamil
23:36
created
src/Sylius/Behat/Context/Setup/ThemeContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
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)) {
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Domain/PromotionCouponContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Ui/Admin/ManagingProductAttributesContext.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@
 block discarded – undo
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(),
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Form/Type/LocaleType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
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',
Please login to merge, or discard this patch.
src/Sylius/Component/Product/Model/Product.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Sylius/Bundle/SearchBundle/DependencyInjection/SyliusSearchExtension.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.