@@ -9,7 +9,7 @@ discard block |
||
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 | |
@@ -568,7 +568,7 @@ discard block |
||
568 | 568 | $this->addVariantWithPriceToOrder($order, $product->getVariants()->first(), $price); |
569 | 569 | |
570 | 570 | $this->orderRepository->add($order); |
571 | - $this->sharedStorage->set('order', $order); |
|
571 | + $this->sharedStorage->set('order', $order); |
|
572 | 572 | } |
573 | 573 | |
574 | 574 | /** |
@@ -784,7 +784,7 @@ discard block |
||
784 | 784 | $customer = $this->customerFactory->createNew(); |
785 | 785 | $customer->setEmail(sprintf('john%[email protected]', uniqid())); |
786 | 786 | $customer->setFirstname('John'); |
787 | - $customer->setLastname('Doe'.$i); |
|
787 | + $customer->setLastname('Doe' . $i); |
|
788 | 788 | |
789 | 789 | $customers[] = $customer; |
790 | 790 | |
@@ -876,7 +876,7 @@ discard block |
||
876 | 876 | $total = $this->getPriceFromString($total); |
877 | 877 | |
878 | 878 | for ($i = 0; $i < $numberOfOrders; $i++) { |
879 | - $order = $this->createOrder($customers[rand(0, $numberOfCustomers - 1)], '#'.uniqid()); |
|
879 | + $order = $this->createOrder($customers[rand(0, $numberOfCustomers - 1)], '#' . uniqid()); |
|
880 | 880 | $order->setState(OrderInterface::STATE_NEW); // Temporary, we should use checkout to place these orders. |
881 | 881 | $this->applyPaymentTransitionOnOrder($order, PaymentTransitions::TRANSITION_COMPLETE); |
882 | 882 | |
@@ -915,7 +915,7 @@ discard block |
||
915 | 915 | $total = $this->getPriceFromString($total); |
916 | 916 | |
917 | 917 | for ($i = 0; $i < $numberOfOrders; $i++) { |
918 | - $order = $this->createOrder($customers[rand(0, $numberOfCustomers - 1)], '#'.uniqid(), $product->getChannels()->first()); |
|
918 | + $order = $this->createOrder($customers[rand(0, $numberOfCustomers - 1)], '#' . uniqid(), $product->getChannels()->first()); |
|
919 | 919 | $order->setState(OrderInterface::STATE_NEW); |
920 | 920 | $this->applyPaymentTransitionOnOrder($order, PaymentTransitions::TRANSITION_COMPLETE); |
921 | 921 |