Completed
Push — symfony3-directorystructure ( c2fd26 )
by Kamil
85:38 queued 68:27
created
src/Sylius/Behat/Context/Setup/PaymentContext.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
      */
88 88
     public function storeAllowsPaying($paymentMethodName)
89 89
     {
90
-        $this->createPaymentMethodFromNameAndCode($paymentMethodName, 'PM_'.$paymentMethodName, 'Payment method');
90
+        $this->createPaymentMethodFromNameAndCode($paymentMethodName, 'PM_' . $paymentMethodName, 'Payment method');
91 91
     }
92 92
 
93 93
     /**
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
      */
140 140
     public function theStoreHasPaymentMethodNotAssignedToAnyChannel($paymentMethodName)
141 141
     {
142
-        $this->createPaymentMethodFromNameAndCode($paymentMethodName, 'PM_'.$paymentMethodName, 'Payment method', false);
142
+        $this->createPaymentMethodFromNameAndCode($paymentMethodName, 'PM_' . $paymentMethodName, 'Payment method', false);
143 143
     }
144 144
 
145 145
     /**
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,6 @@
 block discarded – undo
17 17
 use Sylius\Component\Addressing\Model\ZoneInterface;
18 18
 use Sylius\Component\Addressing\Repository\ZoneRepositoryInterface;
19 19
 use Sylius\Component\Core\Formatter\StringInflector;
20
-use Sylius\Component\Core\Model\ChannelInterface;
21 20
 use Sylius\Component\Core\Model\ShippingMethodInterface;
22 21
 use Sylius\Component\Resource\Factory\FactoryInterface;
23 22
 use Sylius\Component\Shipping\Calculator\DefaultCalculators;
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Ui/Shop/ProductContext.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -234,7 +234,7 @@
 block discarded – undo
234 234
      */
235 235
     public function iShouldBeNotifiedThatThisProductDoesNotHaveSufficientStock(ProductInterface $product)
236 236
     {
237
-       $this->showPage->waitForValidationErrors(3);
237
+        $this->showPage->waitForValidationErrors(3);
238 238
 
239 239
         Assert::true(
240 240
             $this->showPage->hasProductOutOfStockValidationMessage($product),
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Ui/Admin/ManagingProductOptionsContext.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,8 +65,7 @@
 block discarded – undo
65 65
 
66 66
     function is_configures_options(
67 67
         OptionsResolver $resolver
68
-    )
69
-    {
68
+    ) {
70 69
         $resolver->setDefaults([
71 70
             'format' => 'Y:m:d H:i:s'
72 71
         ])->shouldBeCalled();
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Domain/ManagingPromotionCouponsContext.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/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/Shop/Checkout/SelectPaymentPage.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -100,10 +100,10 @@
 block discarded – undo
100 100
     /**
101 101
      * {@inheritdoc}
102 102
      */
103
-     public function isNextStepButtonUnavailable()
104
-     {
105
-         return $this->getElement('next_step')->hasClass('disabled');
106
-     }
103
+        public function isNextStepButtonUnavailable()
104
+        {
105
+            return $this->getElement('next_step')->hasClass('disabled');
106
+        }
107 107
 
108 108
     /**
109 109
      * {@inheritdoc}
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Taxon/UpdatePage.php 2 patches
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -144,7 +144,8 @@
 block discarded – undo
144 144
     /**
145 145
      * {@inheritdoc}
146 146
      */
147
-    public function getValidationMessageForImageAtPlace($place) {
147
+    public function getValidationMessageForImageAtPlace($place)
148
+    {
148 149
         
149 150
         $images = $this->getImageElements();
150 151
         
Please login to merge, or discard this 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/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.