@@ -53,7 +53,7 @@ |
||
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 | } |
@@ -52,8 +52,8 @@ |
||
52 | 52 | StateMachineInterface $secondOrderStateMachine |
53 | 53 | ) { |
54 | 54 | $orderRepository->findOrdersUnpaidSince(Argument::type(\DateTime::class))->willReturn([ |
55 | - $firstOrder, |
|
56 | - $secondOrder |
|
55 | + $firstOrder, |
|
56 | + $secondOrder |
|
57 | 57 | ]); |
58 | 58 | |
59 | 59 | $stateMachineFactory->get($firstOrder, 'sylius_order')->willReturn($firstOrderStateMachine); |
@@ -660,7 +660,7 @@ |
||
660 | 660 | Assert::true( |
661 | 661 | $this->createPage->isUserFormHidden(), |
662 | 662 | 'There should not be password field, but it is.' |
663 | - ); |
|
663 | + ); |
|
664 | 664 | } |
665 | 665 | |
666 | 666 | /** |
@@ -197,7 +197,7 @@ |
||
197 | 197 | return |
198 | 198 | (stripos($elementText, $customerName) !== false) && |
199 | 199 | (stripos($elementText, $street) !== false) && |
200 | - (stripos($elementText, $city.', '.$postcode) !== false) && |
|
200 | + (stripos($elementText, $city . ', ' . $postcode) !== false) && |
|
201 | 201 | (stripos($elementText, $countryName) !== false) |
202 | 202 | ; |
203 | 203 | } |
@@ -100,25 +100,25 @@ |
||
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} |
110 | 110 | */ |
111 | - public function getPaymentMethods() |
|
112 | - { |
|
113 | - $inputs = $this->getSession()->getPage()->findAll('css', '#sylius-payment-methods .item .content label'); |
|
111 | + public function getPaymentMethods() |
|
112 | + { |
|
113 | + $inputs = $this->getSession()->getPage()->findAll('css', '#sylius-payment-methods .item .content label'); |
|
114 | 114 | |
115 | - $paymentMethods = []; |
|
116 | - foreach ($inputs as $input) { |
|
117 | - $paymentMethods[] = trim($input->getText()); |
|
118 | - } |
|
115 | + $paymentMethods = []; |
|
116 | + foreach ($inputs as $input) { |
|
117 | + $paymentMethods[] = trim($input->getText()); |
|
118 | + } |
|
119 | 119 | |
120 | - return $paymentMethods; |
|
121 | - } |
|
120 | + return $paymentMethods; |
|
121 | + } |
|
122 | 122 | |
123 | 123 | /** |
124 | 124 | * {@inheritdoc} |
@@ -44,7 +44,7 @@ |
||
44 | 44 | */ |
45 | 45 | public function registerContainerConfiguration(LoaderInterface $loader) |
46 | 46 | { |
47 | - $loader->load(__DIR__.'/config/config.yml'); |
|
47 | + $loader->load(__DIR__ . '/config/config.yml'); |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | /** |
@@ -44,7 +44,7 @@ |
||
44 | 44 | */ |
45 | 45 | public function registerContainerConfiguration(LoaderInterface $loader) |
46 | 46 | { |
47 | - $loader->load(__DIR__.'/config/config.yml'); |
|
47 | + $loader->load(__DIR__ . '/config/config.yml'); |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | /** |
@@ -47,7 +47,8 @@ |
||
47 | 47 | { |
48 | 48 | $resolver->setNormalizer('validation_groups', function (Options $options, array $validationGroups) { |
49 | 49 | return function (FormInterface $form) use ($validationGroups) { |
50 | - if ((bool) $form->get('promotionCoupon')->getNormData()) { // Validate the coupon if it was sent |
|
50 | + if ((bool) $form->get('promotionCoupon')->getNormData()) { |
|
51 | +// Validate the coupon if it was sent |
|
51 | 52 | $validationGroups[] = 'sylius_promotion_coupon'; |
52 | 53 | } |
53 | 54 |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | */ |
141 | 141 | private function createUnexistingDirectoryMessage() |
142 | 142 | { |
143 | - return '<error>Cannot run command due to unexisting directory (tried to create it automatically, failed).</error>'.PHP_EOL; |
|
143 | + return '<error>Cannot run command due to unexisting directory (tried to create it automatically, failed).</error>' . PHP_EOL; |
|
144 | 144 | } |
145 | 145 | |
146 | 146 | /** |
@@ -148,6 +148,6 @@ discard block |
||
148 | 148 | */ |
149 | 149 | private function createBadPermissionsMessage() |
150 | 150 | { |
151 | - return '<error>Cannot run command due to bad directory permissions (tried to change permissions to 0755).</error>'.PHP_EOL; |
|
151 | + return '<error>Cannot run command due to bad directory permissions (tried to change permissions to 0755).</error>' . PHP_EOL; |
|
152 | 152 | } |
153 | 153 | } |