Passed
Push — master ( aad1d3...713f8f )
by
unknown
07:45
created
src/Resolver/ApplePayDirect/ApplePayDirectPaymentTypeResolver.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Resolver/ApplePayDirect/ApplePayDirectApiOrderPaymentResolver.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,8 +88,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/Form/Type/PaymentMollieType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
                 ],
54 54
                 'label' => false,
55 55
                 'choices' => $data,
56
-                'choice_attr' => function ($value) use ($images, $paymentFee) {
56
+                'choice_attr' => function($value) use ($images, $paymentFee) {
57 57
                     return [
58 58
                         'image' => $images[$value],
59 59
                         'paymentFee' => $paymentFee[$value],
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
                 'label' => false,
65 65
                 'choices' => $issuers['ideal'] ?? null,
66 66
                 'choice_label' => 'name',
67
-                'choice_attr' => function ($value) {
67
+                'choice_attr' => function($value) {
68 68
                     return ['image' => $value->image->svg];
69 69
                 },
70 70
             ])
Please login to merge, or discard this patch.
src/Factory/MollieSubscriptionGatewayFactory.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,8 +24,7 @@  discard block
 block discarded – undo
24 24
     protected function populateConfig(ArrayObject $config): void
25 25
     {
26 26
         $environment = true === $config['environment'] ?
27
-            MollieGatewayConfigurationType::API_KEY_LIVE :
28
-            MollieGatewayConfigurationType::API_KEY_TEST;
27
+            MollieGatewayConfigurationType::API_KEY_LIVE : MollieGatewayConfigurationType::API_KEY_TEST;
29 28
 
30 29
         $config->defaults([
31 30
             'payum.factory_name' => self::FACTORY_NAME,
@@ -47,7 +46,7 @@  discard block
 block discarded – undo
47 46
                 'interval',
48 47
             ];
49 48
 
50
-            $config['payum.api'] = function (ArrayObject $config) use ($environment) {
49
+            $config['payum.api'] = function(ArrayObject $config) use ($environment) {
51 50
                 $config->validateNotEmpty($config['payum.required_options']);
52 51
 
53 52
                 /** @var MollieApiClient $mollieApiClient */
Please login to merge, or discard this patch.
src/Factory/MollieGatewayFactory.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,8 +24,7 @@  discard block
 block discarded – undo
24 24
     protected function populateConfig(ArrayObject $config): void
25 25
     {
26 26
         $environment = true === $config['environment'] ?
27
-            MollieGatewayConfigurationType::API_KEY_LIVE :
28
-            MollieGatewayConfigurationType::API_KEY_TEST;
27
+            MollieGatewayConfigurationType::API_KEY_LIVE : MollieGatewayConfigurationType::API_KEY_TEST;
29 28
 
30 29
         $config->defaults([
31 30
             'payum.factory_name' => self::FACTORY_NAME,
@@ -44,7 +43,7 @@  discard block
 block discarded – undo
44 43
                 $environment,
45 44
             ];
46 45
 
47
-            $config['payum.api'] = function (ArrayObject $config) use ($environment) {
46
+            $config['payum.api'] = function(ArrayObject $config) use ($environment) {
48 47
                 $config->validateNotEmpty($config['payum.required_options']);
49 48
 
50 49
                 /** @var MollieApiClient $mollieApiClient */
Please login to merge, or discard this patch.
src/Form/Type/MollieGatewayConfigurationType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@
 block discarded – undo
122 122
                 'help' => $this->documentationLinks->getSingleClickDoc(),
123 123
                 'help_html' => true,
124 124
             ])
125
-            ->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) {
125
+            ->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) {
126 126
                 $data = $event->getData();
127 127
 
128 128
                 if (isset($data['components']) && true === $data['components']) {
Please login to merge, or discard this patch.
src/Creator/MollieMethodsCreator.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,8 +67,7 @@
 block discarded – undo
67 67
         foreach ($gateways as $gateway) {
68 68
             $config = $gateway->getConfig();
69 69
             $environment = true === $config['environment'] ?
70
-                MollieGatewayConfigurationType::API_KEY_LIVE :
71
-                MollieGatewayConfigurationType::API_KEY_TEST;
70
+                MollieGatewayConfigurationType::API_KEY_LIVE : MollieGatewayConfigurationType::API_KEY_TEST;
72 71
 
73 72
             $client = $this->mollieApiClient->setApiKey($config[$environment]);
74 73
 
Please login to merge, or discard this patch.
src/Helper/ConvertOrder.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -127,8 +127,7 @@
 block discarded – undo
127 127
                 'vatAmount' => [
128 128
                     'currency' => $this->order->getCurrencyCode(),
129 129
                     'value' => null === $this->getTaxRatesUnitItem($item) ?
130
-                        '0.00' :
131
-                        $this->calculateTaxAmount->calculate($this->getTaxRatesUnitItem($item), $this->order->getItemsTotal()),
130
+                        '0.00' : $this->calculateTaxAmount->calculate($this->getTaxRatesUnitItem($item), $this->order->getItemsTotal()),
132 131
                 ],
133 132
                 'metadata' => [
134 133
                     'item_id' => $item->getId(),
Please login to merge, or discard this patch.