Completed
Push — pull-request/8500 ( e49efc...54b484 )
by Kamil
36:05 queued 17:36
created
src/Sylius/Behat/Context/Setup/PaymentContext.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Behat\Context\Setup;
15 15
 
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      */
91 91
     public function storeAllowsPaying($paymentMethodName, $position = null)
92 92
     {
93
-        $this->createPaymentMethod($paymentMethodName, 'PM_'.$paymentMethodName, 'Offline', 'Payment method', true, $position);
93
+        $this->createPaymentMethod($paymentMethodName, 'PM_' . $paymentMethodName, 'Offline', 'Payment method', true, $position);
94 94
     }
95 95
 
96 96
     /**
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
      */
174 174
     public function theStoreHasPaymentMethodNotAssignedToAnyChannel($paymentMethodName)
175 175
     {
176
-        $this->createPaymentMethod($paymentMethodName, 'PM_'.$paymentMethodName, 'Payment method', 'Offline', false);
176
+        $this->createPaymentMethod($paymentMethodName, 'PM_' . $paymentMethodName, 'Payment method', 'Offline', false);
177 177
     }
178 178
 
179 179
     /**
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Setup/OrderContext.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Behat\Context\Setup;
15 15
 
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
 
382 382
             $this->itemQuantityModifier->modify($item, 1);
383 383
 
384
-            $order = $this->createOrder($customer, '#00000'.$i);
384
+            $order = $this->createOrder($customer, '#00000' . $i);
385 385
             $order->addItem($item);
386 386
 
387 387
             $this->checkoutUsing($order, $shippingMethod, clone $address, $paymentMethod);
@@ -480,7 +480,7 @@  discard block
 block discarded – undo
480 480
         $total = $this->getPriceFromString($total);
481 481
 
482 482
         for ($i = 0; $i < $numberOfOrders; $i++) {
483
-            $order = $this->createOrder($customers[rand(0, $numberOfCustomers - 1)], '#'.uniqid());
483
+            $order = $this->createOrder($customers[rand(0, $numberOfCustomers - 1)], '#' . uniqid());
484 484
             $order->setState(OrderInterface::STATE_NEW); // Temporary, we should use checkout to place these orders.
485 485
             $this->applyPaymentTransitionOnOrder($order, PaymentTransitions::TRANSITION_COMPLETE);
486 486
 
@@ -507,7 +507,7 @@  discard block
 block discarded – undo
507 507
         $total = $this->getPriceFromString($total);
508 508
 
509 509
         for ($i = 0; $i < $numberOfOrders; $i++) {
510
-            $order = $this->createOrder($customers[rand(0, $numberOfCustomers - 1)], '#'.uniqid(), $product->getChannels()->first());
510
+            $order = $this->createOrder($customers[rand(0, $numberOfCustomers - 1)], '#' . uniqid(), $product->getChannels()->first());
511 511
             $order->setState(OrderInterface::STATE_NEW);
512 512
             $this->applyPaymentTransitionOnOrder($order, PaymentTransitions::TRANSITION_COMPLETE);
513 513
 
@@ -732,7 +732,7 @@  discard block
 block discarded – undo
732 732
             $customer = $this->customerFactory->createNew();
733 733
             $customer->setEmail(sprintf('john%[email protected]', uniqid()));
734 734
             $customer->setFirstname('John');
735
-            $customer->setLastname('Doe'.$i);
735
+            $customer->setLastname('Doe' . $i);
736 736
 
737 737
             $customers[] = $customer;
738 738
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Setup/ProductReviewContext.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Behat\Context\Setup;
15 15
 
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
     ) {
89 89
         $review = $this->createProductReview($product, $title, $rating, $title, $customer);
90 90
         if (null !== $daysSinceCreation) {
91
-            $review->setCreatedAt(new \DateTime('-'.$daysSinceCreation.' days'));
91
+            $review->setCreatedAt(new \DateTime('-' . $daysSinceCreation . ' days'));
92 92
         }
93 93
 
94 94
         $this->productReviewRepository->add($review);
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
     {
132 132
         $customer = $this->sharedStorage->get('customer');
133 133
         foreach ($rates as $key => $rate) {
134
-            $review = $this->createProductReview($product, 'Title '.$key, $rate, 'Comment '.$key, $customer);
134
+            $review = $this->createProductReview($product, 'Title ' . $key, $rate, 'Comment ' . $key, $customer);
135 135
             $this->productReviewRepository->add($review);
136 136
         }
137 137
     }
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Ui/PaypalContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Behat\Context\Ui;
15 15
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Ui/Shop/LoginContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Behat\Context\Ui\Shop;
15 15
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Ui/Shop/Checkout/CheckoutThankYouContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Sylius\Behat\Context\Ui\Shop\Checkout;
6 6
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Ui/Shop/Checkout/CheckoutShippingContext.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Sylius\Behat\Context\Ui\Shop\Checkout;
6 6
 
@@ -198,6 +198,6 @@  discard block
 block discarded – undo
198 198
      */
199 199
     public function iShouldBeCheckingOutAs($email)
200 200
     {
201
-        Assert::same($this->selectShippingPage->getPurchaserEmail(), 'Checking out as '.$email.'.');
201
+        Assert::same($this->selectShippingPage->getPurchaserEmail(), 'Checking out as ' . $email . '.');
202 202
     }
203 203
 }
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Ui/Shop/Checkout/CheckoutCompleteContext.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Sylius\Behat\Context\Ui\Shop\Checkout;
6 6
 
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
      */
109 109
     public function iShouldSeeThisShippingAddressAsShippingAddress($fullName)
110 110
     {
111
-        $address = $this->sharedStorage->get('shipping_address_'.StringInflector::nameToLowercaseCode($fullName));
111
+        $address = $this->sharedStorage->get('shipping_address_' . StringInflector::nameToLowercaseCode($fullName));
112 112
 
113 113
         Assert::true($this->completePage->hasShippingAddress($address));
114 114
     }
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
      */
119 119
     public function iShouldSeeThisBillingAddressAsBillingAddress($fullName)
120 120
     {
121
-        $address = $this->sharedStorage->get('billing_address_'.StringInflector::nameToLowercaseCode($fullName));
121
+        $address = $this->sharedStorage->get('billing_address_' . StringInflector::nameToLowercaseCode($fullName));
122 122
 
123 123
         Assert::true($this->completePage->hasBillingAddress($address));
124 124
     }
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Ui/Admin/ManagingZonesContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Behat\Context\Ui\Admin;
15 15
 
Please login to merge, or discard this patch.