Completed
Push — symfony3 ( 9e4aea...666329 )
by Kamil
18:10
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/Updater/UnpaidOrdersStateUpdater.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
 
54 54
     public function cancel()
55 55
     {
56
-        $expiredUnpaidOrders = $this->orderRepository->findOrdersUnpaidSince(new \DateTime('-'.$this->expirationPeriod));
56
+        $expiredUnpaidOrders = $this->orderRepository->findOrdersUnpaidSince(new \DateTime('-' . $this->expirationPeriod));
57 57
         foreach ($expiredUnpaidOrders as $expiredUnpaidOrder) {
58 58
             $this->cancelOrder($expiredUnpaidOrder);
59 59
         }
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/Setup/PaymentContext.php 1 patch
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.
src/Sylius/Behat/Context/Ui/Admin/ManagingProductVariantsContext.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
     {
289 289
         Assert::true(
290 290
             $this->indexPage->isSingleResourceWithSpecificElementOnPage(['name' => $productVariantName], sprintf('td > div.ui.label:contains("%s")', $quantity)),
291
-            sprintf('The product variant %s should have %s items on hand, but it does not.',$productVariantName, $quantity)
291
+            sprintf('The product variant %s should have %s items on hand, but it does not.', $productVariantName, $quantity)
292 292
         );
293 293
     }
294 294
 
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
 
302 302
         Assert::true(
303 303
             $this->indexPage->isSingleResourceWithSpecificElementOnPage(['name' => $productVariantName], sprintf('td > div.ui.label:contains("%s")', $quantity)),
304
-            sprintf('The product variant %s should have %s items on hand, but it does not.',$productVariantName, $quantity)
304
+            sprintf('The product variant %s should have %s items on hand, but it does not.', $productVariantName, $quantity)
305 305
         );
306 306
     }
307 307
 
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/Taxon/ShowPage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
     {
61 61
         $productsList = $this->getDocument()->find('css', '#products');
62 62
         
63
-        $products = $productsList->findAll('css','.column > .card');
63
+        $products = $productsList->findAll('css', '.column > .card');
64 64
         
65 65
         return count($products);
66 66
     }
Please login to merge, or discard this patch.