@@ -134,7 +134,7 @@ |
||
| 134 | 134 | */ |
| 135 | 135 | protected function getPaymentTransfer(QuoteTransfer $quoteTransfer, $paymentSelection) |
| 136 | 136 | { |
| 137 | - $method = 'get' . ucfirst($paymentSelection); |
|
| 137 | + $method = 'get'.ucfirst($paymentSelection); |
|
| 138 | 138 | return $quoteTransfer->getPayment()->$method(); |
| 139 | 139 | } |
| 140 | 140 | |
@@ -22,11 +22,11 @@ |
||
| 22 | 22 | */ |
| 23 | 23 | public function provideDependencies(Container $container) |
| 24 | 24 | { |
| 25 | - $container[self::CLIENT_RATEPAY] = function (Container $container) { |
|
| 25 | + $container[self::CLIENT_RATEPAY] = function(Container $container) { |
|
| 26 | 26 | return $container->getLocator()->ratepay()->client(); |
| 27 | 27 | }; |
| 28 | 28 | |
| 29 | - $container[self::CLIENT_SESSION] = function (Container $container) { |
|
| 29 | + $container[self::CLIENT_SESSION] = function(Container $container) { |
|
| 30 | 30 | return $container->getLocator()->session()->client(); |
| 31 | 31 | }; |
| 32 | 32 | |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | $resolver->setDefaults([ |
| 43 | 43 | 'data_class' => RatepayPaymentInstallmentTransfer::class, |
| 44 | 44 | SubFormInterface::OPTIONS_FIELD_NAME => [], |
| 45 | - 'validation_groups' => function (FormInterface $form) { |
|
| 45 | + 'validation_groups' => function(FormInterface $form) { |
|
| 46 | 46 | |
| 47 | 47 | if ($form->getParent()[PaymentTransfer::PAYMENT_SELECTION]->getData() != $this->getPropertyPath()) { |
| 48 | 48 | return; |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | */ |
| 92 | 92 | public function getTemplatePath() |
| 93 | 93 | { |
| 94 | - return RatepayConfig::PROVIDER_NAME . '/' . static::PAYMENT_METHOD; |
|
| 94 | + return RatepayConfig::PROVIDER_NAME.'/'.static::PAYMENT_METHOD; |
|
| 95 | 95 | } |
| 96 | 96 | |
| 97 | 97 | /** |
@@ -63,6 +63,6 @@ |
||
| 63 | 63 | */ |
| 64 | 64 | public function getTemplatePath() |
| 65 | 65 | { |
| 66 | - return RatepayConfig::PROVIDER_NAME . '/' . static::PAYMENT_METHOD; |
|
| 66 | + return RatepayConfig::PROVIDER_NAME.'/'.static::PAYMENT_METHOD; |
|
| 67 | 67 | } |
| 68 | 68 | } |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | */ |
| 70 | 70 | public function getTemplatePath() |
| 71 | 71 | { |
| 72 | - return RatepayConfig::PROVIDER_NAME . '/' . static::PAYMENT_METHOD; |
|
| 72 | + return RatepayConfig::PROVIDER_NAME.'/'.static::PAYMENT_METHOD; |
|
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | /** |
@@ -112,7 +112,7 @@ |
||
| 112 | 112 | protected function createBirthdayConstraint() |
| 113 | 113 | { |
| 114 | 114 | return new Callback([ |
| 115 | - 'callback' => function ($date, ExecutionContextInterface $context) { |
|
| 115 | + 'callback' => function($date, ExecutionContextInterface $context) { |
|
| 116 | 116 | if (strtotime($date) > strtotime(self::MIN_BIRTHDAY_DATE_STRING)) { |
| 117 | 117 | $context->addViolation('checkout.step.payment.must_be_older_than_18_years'); |
| 118 | 118 | } |
@@ -127,7 +127,7 @@ |
||
| 127 | 127 | $this->ratepayPaymentRequestTransfer |
| 128 | 128 | ->setBillingAddress($billingAddress) |
| 129 | 129 | ->setShippingAddress($shippingAddress) |
| 130 | - ->setBankAccountHolder($billingAddress->getFirstName() . " " . $billingAddress->getLastName()); |
|
| 130 | + ->setBankAccountHolder($billingAddress->getFirstName()." ".$billingAddress->getLastName()); |
|
| 131 | 131 | } |
| 132 | 132 | |
| 133 | 133 | /** |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | */ |
| 70 | 70 | public function getTemplatePath() |
| 71 | 71 | { |
| 72 | - return RatepayConfig::PROVIDER_NAME . '/' . static::PAYMENT_METHOD; |
|
| 72 | + return RatepayConfig::PROVIDER_NAME.'/'.static::PAYMENT_METHOD; |
|
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | /** |