Completed
Push — unused-compiler-pass ( 93ebf5 )
by Kamil
31:23 queued 11:08
created
src/Sylius/Component/Core/Model/ProductVariant.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,10 +92,10 @@
 block discarded – undo
92 92
             $string .= '(';
93 93
 
94 94
             foreach ($this->getOptionValues() as $option) {
95
-                $string .= $option->getOption()->getName().': '.$option->getValue().', ';
95
+                $string .= $option->getOption()->getName() . ': ' . $option->getValue() . ', ';
96 96
             }
97 97
 
98
-            $string = substr($string, 0, -2).')';
98
+            $string = substr($string, 0, -2) . ')';
99 99
         }
100 100
 
101 101
         return $string;
Please login to merge, or discard this patch.
src/Sylius/Component/Order/Remover/ExpiredCartsRemover.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 
41 41
     public function remove()
42 42
     {
43
-        $expiredCarts = $this->orderRepository->findCartsNotModifiedSince(new \DateTime('-'.$this->expirationPeriod));
43
+        $expiredCarts = $this->orderRepository->findCartsNotModifiedSince(new \DateTime('-' . $this->expirationPeriod));
44 44
         foreach ($expiredCarts as $expiredCart) {
45 45
             $this->orderRepository->remove($expiredCart);
46 46
         }
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Setup/TaxonomyContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@
 block discarded – undo
120 120
         $filesPath = $this->getParameter('files_path');
121 121
 
122 122
         $taxonImage = $this->taxonImageFactory->createNew();
123
-        $taxonImage->setFile(new UploadedFile($filesPath.$imagePath, basename($imagePath)));
123
+        $taxonImage->setFile(new UploadedFile($filesPath . $imagePath, basename($imagePath)));
124 124
         $taxonImage->setCode($imageCode);
125 125
         $this->imageUploader->upload($taxonImage);
126 126
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Domain/CartContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
      */
59 59
     public function theyAbandonedTheirCart(OrderInterface $cart, $amount, $time)
60 60
     {
61
-        $cart->setUpdatedAt(new \DateTime('-'.$amount.' '.$time));
61
+        $cart->setUpdatedAt(new \DateTime('-' . $amount . ' ' . $time));
62 62
         $this->orderManager->flush();
63 63
     }
64 64
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Product/UpdateSimpleProductPage.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
 
153 153
         $imageForm = $this->getLastImageElement();
154 154
         $imageForm->fillField('Code', $code);
155
-        $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path);
155
+        $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path);
156 156
     }
157 157
 
158 158
     /**
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
         $filesPath = $this->getParameter('files_path');
164 164
 
165 165
         $imageForm = $this->getImageElementByCode($code);
166
-        $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path);
166
+        $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path);
167 167
     }
168 168
 
169 169
     /**
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
     private function getImageElementByCode($code)
262 262
     {
263 263
         $images = $this->getElement('images');
264
-        $inputCode = $images->find('css', 'input[value="'.$code.'"]');
264
+        $inputCode = $images->find('css', 'input[value="' . $code . '"]');
265 265
 
266 266
         if (null === $inputCode) {
267 267
             return null;
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Product/CreateConfigurableProductPage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
 
55 55
         $imageForm = $this->getLastImageElement();
56 56
         $imageForm->fillField('Code', $code);
57
-        $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path);
57
+        $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path);
58 58
     }
59 59
 
60 60
     /**
Please login to merge, or discard this patch.
Sylius/Bundle/CoreBundle/Installer/Requirement/FilesystemRequirements.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
         $this
23 23
             ->add(new Requirement(
24 24
                 $translator->trans('sylius.installer.filesystem.vendors', []),
25
-                is_dir($root.'/../vendor')
25
+                is_dir($root . '/../vendor')
26 26
             ))
27 27
             ->add(new Requirement(
28 28
                 $translator->trans('sylius.installer.filesystem.cache.header', []),
@@ -38,9 +38,9 @@  discard block
 block discarded – undo
38 38
             ))
39 39
             ->add(new Requirement(
40 40
                 $translator->trans('sylius.installer.filesystem.parameters.header', []),
41
-                is_writable($root.'/config/parameters.yml'),
41
+                is_writable($root . '/config/parameters.yml'),
42 42
                 true,
43
-                $translator->trans('sylius.installer.filesystem.parameters.help', ['%path%' => $root.'/config/parameters.yml'])
43
+                $translator->trans('sylius.installer.filesystem.parameters.help', ['%path%' => $root . '/config/parameters.yml'])
44 44
             ))
45 45
         ;
46 46
     }
Please login to merge, or discard this patch.
spec/Form/EventSubscriber/CustomerRegistrationFormSubscriberSpec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
 
47 47
     function it_listens_on_pre_submit_data_event()
48 48
     {
49
-        $this->getSubscribedEvents()->shouldReturn([FormEvents::PRE_SUBMIT => 'preSubmit',]);
49
+        $this->getSubscribedEvents()->shouldReturn([FormEvents::PRE_SUBMIT => 'preSubmit', ]);
50 50
     }
51 51
 
52 52
     function it_sets_user_for_existing_customer(
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/DependencyInjection/SyliusCoreExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     public function load(array $config, ContainerBuilder $container)
29 29
     {
30 30
         $config = $this->processConfiguration($this->getConfiguration($config, $container), $config);
31
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
31
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
32 32
 
33 33
         $loader->load(sprintf('driver/%s.xml', $config['driver']));
34 34
 
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
             return;
91 91
         }
92 92
 
93
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
93
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
94 94
         $loader->load('resource_integration.xml');
95 95
 
96 96
         $container->prependExtensionConfig('sylius_resource', [
Please login to merge, or discard this patch.