@@ -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 | } |
@@ -56,7 +56,7 @@ |
||
56 | 56 | public function onLogoutSuccess(Request $request) |
57 | 57 | { |
58 | 58 | $channel = $this->channelContext->getChannel(); |
59 | - $this->session->remove('_sylius.cart.'.$channel->getCode()); |
|
59 | + $this->session->remove('_sylius.cart.' . $channel->getCode()); |
|
60 | 60 | |
61 | 61 | return parent::onLogoutSuccess($request); |
62 | 62 | } |
@@ -87,7 +87,7 @@ |
||
87 | 87 | $productVariant->getChannelPricings()->willReturn(new ArrayCollection([ |
88 | 88 | $channelPricingWithPrice->getWrappedObject(), |
89 | 89 | $channelPricingWithoutPrice->getWrappedObject(), |
90 | - ]));; |
|
90 | + ])); ; |
|
91 | 91 | $channelPricingWithoutPrice->getPrice()->willReturn(null); |
92 | 92 | $channelPricingWithPrice->getPrice()->willReturn(123); |
93 | 93 |
@@ -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 | /** |