Completed
Push — snake-case-tests ( 55729f )
by Kamil
87:29 queued 51:35
created
src/Sylius/Behat/Page/Admin/Product/CreateSimpleProductPage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
             $imageForm->fillField('Type', $type);
108 108
         }
109 109
 
110
-        $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path);
110
+        $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path);
111 111
     }
112 112
 
113 113
     /**
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Product/UpdateConfigurableProductPage.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
             $imageForm->fillField('Type', $type);
76 76
         }
77 77
 
78
-        $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path);
78
+        $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path);
79 79
     }
80 80
 
81 81
     /**
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
         $filesPath = $this->getParameter('files_path');
147 147
 
148 148
         $imageForm = $this->getImageElementByType($type);
149
-        $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path);
149
+        $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path);
150 150
     }
151 151
 
152 152
     /**
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
     private function getImageElementByType($type)
305 305
     {
306 306
         $images = $this->getElement('images');
307
-        $typeInput = $images->find('css', 'input[value="'.$type.'"]');
307
+        $typeInput = $images->find('css', 'input[value="' . $type . '"]');
308 308
 
309 309
         if (null === $typeInput) {
310 310
             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
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
             $imageForm->fillField('Type', $type);
108 108
         }
109 109
 
110
-        $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path);
110
+        $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path);
111 111
     }
112 112
 
113 113
     /**
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
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
             $imageForm->fillField('Type', $type);
76 76
         }
77 77
 
78
-        $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path);
78
+        $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path);
79 79
     }
80 80
 
81 81
     /**
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
         $filesPath = $this->getParameter('files_path');
147 147
 
148 148
         $imageForm = $this->getImageElementByType($type);
149
-        $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path);
149
+        $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path);
150 150
     }
151 151
 
152 152
     /**
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
     private function getImageElementByType($type)
305 305
     {
306 306
         $images = $this->getElement('images');
307
-        $typeInput = $images->find('css', 'input[value="'.$type.'"]');
307
+        $typeInput = $images->find('css', 'input[value="' . $type . '"]');
308 308
 
309 309
         if (null === $typeInput) {
310 310
             return null;
Please login to merge, or discard this patch.
src/Sylius/Bundle/ApiBundle/Form/Type/ProductVariantType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
      */
28 28
     public function buildForm(FormBuilderInterface $builder, array $options)
29 29
     {
30
-        $builder->addEventListener(FormEvents::PRE_SUBMIT , function (FormEvent $event) {
30
+        $builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) {
31 31
             $data = $event->getData();
32 32
 
33 33
             if (!array_key_exists('onHand', $data)) {
Please login to merge, or discard this patch.
src/Sylius/Bundle/MoneyBundle/DependencyInjection/SyliusMoneyExtension.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([], $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
         $container->setParameter('sylius_money.locale', $config['locale']);
34 34
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
             return;
45 45
         }
46 46
 
47
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
47
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
48 48
         $loader->load('services/integrations/currency.xml');
49 49
     }
50 50
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/ResourceBundle/Controller/RequestConfiguration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
      */
164 164
     public function getRouteName($name)
165 165
     {
166
-        $sectionPrefix = $this->getSection() ? $this->getSection().'_' : '';
166
+        $sectionPrefix = $this->getSection() ? $this->getSection() . '_' : '';
167 167
 
168 168
         return sprintf('%s_%s%s_%s', $this->metadata->getApplicationName(), $sectionPrefix, $this->metadata->getName(), $name);
169 169
     }
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
             return '';
206 206
         }
207 207
 
208
-        return '#'.$redirect['hash'];
208
+        return '#' . $redirect['hash'];
209 209
     }
210 210
 
211 211
     /**
Please login to merge, or discard this patch.
Bundle/ApiBundle/Controller/ShowAvailablePaymentMethodsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
      */
128 128
     private function getPaymentMethods(PaymentInterface $payment, $locale)
129 129
     {
130
-        $paymentMethods =  $this->paymentMethodResolver->getSupportedMethods($payment);
130
+        $paymentMethods = $this->paymentMethodResolver->getSupportedMethods($payment);
131 131
 
132 132
         $rawPaymentMethods = [];
133 133
 
Please login to merge, or discard this patch.
Bundle/ApiBundle/Controller/ShowAvailableShippingMethodsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@
 block discarded – undo
136 136
      */
137 137
     private function getCalculatedShippingMethods(ShipmentInterface $shipment, $locale)
138 138
     {
139
-        $shippingMethods =  $this->shippingMethodsResolver->getSupportedMethods($shipment);
139
+        $shippingMethods = $this->shippingMethodsResolver->getSupportedMethods($shipment);
140 140
 
141 141
         $rawShippingMethods = [];
142 142
 
Please login to merge, or discard this patch.