@@ -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\Domain; |
15 | 15 | |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | */ |
170 | 170 | public function thisOrderHasNotBeenPaidForDays(OrderInterface $order, $amount, $time) |
171 | 171 | { |
172 | - $order->setCheckoutCompletedAt(new \DateTime('-'.$amount.' '.$time)); |
|
172 | + $order->setCheckoutCompletedAt(new \DateTime('-' . $amount . ' ' . $time)); |
|
173 | 173 | $this->orderManager->flush(); |
174 | 174 | |
175 | 175 | $this->unpaidOrdersStateUpdater->cancel(); |
@@ -9,7 +9,7 @@ |
||
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\Hook; |
15 | 15 |
@@ -9,7 +9,7 @@ |
||
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\Transform; |
15 | 15 |
@@ -9,7 +9,7 @@ |
||
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\Api\Admin; |
15 | 15 |
@@ -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 | |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | public function theStoreHasAndShippingCategory($firstShippingCategoryName, $secondShippingCategoryName = null) |
63 | 63 | { |
64 | 64 | $this->createShippingCategory($firstShippingCategoryName); |
65 | - (null === $secondShippingCategoryName)? : $this->createShippingCategory($secondShippingCategoryName); |
|
65 | + (null === $secondShippingCategoryName) ?: $this->createShippingCategory($secondShippingCategoryName); |
|
66 | 66 | } |
67 | 67 | |
68 | 68 | /** |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | private function createShippingCategory($shippingCategoryName, $shippingCategoryCode = null) |
81 | 81 | { |
82 | 82 | /** @var ShippingCategoryInterface $shippingCategory */ |
83 | - $shippingCategory = $this->shippingCategoryFactory->createNew(); |
|
83 | + $shippingCategory = $this->shippingCategoryFactory->createNew(); |
|
84 | 84 | $shippingCategory->setName($shippingCategoryName); |
85 | 85 | $shippingCategory->setCode($shippingCategoryCode); |
86 | 86 |
@@ -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 | |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | |
139 | 139 | /** @var ImageInterface $taxonImage */ |
140 | 140 | $taxonImage = $this->taxonImageFactory->createNew(); |
141 | - $taxonImage->setFile(new UploadedFile($filesPath.$imagePath, basename($imagePath))); |
|
141 | + $taxonImage->setFile(new UploadedFile($filesPath . $imagePath, basename($imagePath))); |
|
142 | 142 | $taxonImage->setType($imageType); |
143 | 143 | $this->imageUploader->upload($taxonImage); |
144 | 144 |
@@ -9,7 +9,7 @@ |
||
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 |
@@ -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 | |
@@ -90,7 +90,7 @@ discard block |
||
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 |
||
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 | /** |
@@ -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 | |
@@ -381,7 +381,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |