@@ -41,7 +41,7 @@ |
||
| 41 | 41 | $environment, |
| 42 | 42 | ]; |
| 43 | 43 | |
| 44 | - $config['payum.api'] = function (ArrayObject $config) use ($environment) { |
|
| 44 | + $config['payum.api'] = function(ArrayObject $config) use ($environment) { |
|
| 45 | 45 | $config->validateNotEmpty($config['payum.required_options']); |
| 46 | 46 | |
| 47 | 47 | /** @var MollieApiClient $mollieApiClient */ |
@@ -120,7 +120,7 @@ |
||
| 120 | 120 | 'label' => 'bitbag_sylius_mollie_plugin.ui.debug_level_log', |
| 121 | 121 | 'choices' => Options::getDebugLevels(), |
| 122 | 122 | ]) |
| 123 | - ->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) { |
|
| 123 | + ->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) { |
|
| 124 | 124 | /** @var MollieGatewayConfigInterface $object */ |
| 125 | 125 | $object = $event->getForm()->getData(); |
| 126 | 126 | $data = $event->getData(); |
@@ -51,8 +51,7 @@ |
||
| 51 | 51 | $config = $gateway->getConfig(); |
| 52 | 52 | |
| 53 | 53 | $environment = true === $config['environment'] ? |
| 54 | - MollieGatewayConfigurationType::API_KEY_LIVE : |
|
| 55 | - MollieGatewayConfigurationType::API_KEY_TEST; |
|
| 54 | + MollieGatewayConfigurationType::API_KEY_LIVE : MollieGatewayConfigurationType::API_KEY_TEST; |
|
| 56 | 55 | |
| 57 | 56 | try { |
| 58 | 57 | return $this->mollieApiClient->setApiKey($config[$environment]); |
@@ -26,8 +26,8 @@ |
||
| 26 | 26 | private $apiOrderPaymentResolver; |
| 27 | 27 | |
| 28 | 28 | public function __construct( |
| 29 | - ApplePayDirectApiPaymentResolverInterface $apiPaymentResolver, |
|
| 30 | - ApplePayDirectApiOrderPaymentResolverInterface $apiOrderPaymentResolver |
|
| 29 | + ApplePayDirectApiPaymentResolverInterface $apiPaymentResolver, |
|
| 30 | + ApplePayDirectApiOrderPaymentResolverInterface $apiOrderPaymentResolver |
|
| 31 | 31 | ) { |
| 32 | 32 | $this->apiPaymentResolver = $apiPaymentResolver; |
| 33 | 33 | $this->apiOrderPaymentResolver = $apiOrderPaymentResolver; |
@@ -88,8 +88,7 @@ |
||
| 88 | 88 | 'lines' => $details['lines'], |
| 89 | 89 | 'metadata' => $metadata, |
| 90 | 90 | 'expiresAt' => isset($dateExpired) ? |
| 91 | - $dateExpired->format('Y-m-d') : |
|
| 92 | - (new \DateTimeImmutable('now'))->format('Y-m-d'), |
|
| 91 | + $dateExpired->format('Y-m-d') : (new \DateTimeImmutable('now'))->format('Y-m-d'), |
|
| 93 | 92 | ] |
| 94 | 93 | ); |
| 95 | 94 | if ($response->status === OrderStatus::STATUS_PAID) { |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | ->add('molliePaymentMethods', ChoiceType::class, [ |
| 48 | 48 | 'label' => false, |
| 49 | 49 | 'choices' => $data, |
| 50 | - 'choice_attr' => function ($value) use ($images, $paymentFee) { |
|
| 50 | + 'choice_attr' => function($value) use ($images, $paymentFee) { |
|
| 51 | 51 | return [ |
| 52 | 52 | 'image' => $images[$value], |
| 53 | 53 | 'paymentFee' => $paymentFee[$value], |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | 'label' => false, |
| 59 | 59 | 'choices' => $issuers['ideal'] ?? null, |
| 60 | 60 | 'choice_label' => 'name', |
| 61 | - 'choice_attr' => function ($value) { |
|
| 61 | + 'choice_attr' => function($value) { |
|
| 62 | 62 | return ['image' => $value->image->svg]; |
| 63 | 63 | }, |
| 64 | 64 | ]) |