@@ -45,7 +45,7 @@ |
||
45 | 45 | 'interval', |
46 | 46 | ]; |
47 | 47 | |
48 | - $config['payum.api'] = function (ArrayObject $config) { |
|
48 | + $config['payum.api'] = function(ArrayObject $config) { |
|
49 | 49 | $config->validateNotEmpty($config['payum.required_options']); |
50 | 50 | |
51 | 51 | /** @var MollieApiClient $mollieApiClient */ |
@@ -64,7 +64,7 @@ |
||
64 | 64 | ], |
65 | 65 | 'data' => $this->session->get('mollie_direct_debit_data')['iban'] ?? null, |
66 | 66 | ]) |
67 | - ->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) { |
|
67 | + ->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) { |
|
68 | 68 | $data = $event->getData(); |
69 | 69 | |
70 | 70 | $this->session->set('mollie_direct_debit_data', $data); |
@@ -42,7 +42,7 @@ |
||
42 | 42 | 'api_key', |
43 | 43 | ]; |
44 | 44 | |
45 | - $config['payum.api'] = function (ArrayObject $config) { |
|
45 | + $config['payum.api'] = function(ArrayObject $config) { |
|
46 | 46 | $config->validateNotEmpty($config['payum.required_options']); |
47 | 47 | |
48 | 48 | /** @var MollieApiClient $mollieApiClient */ |
@@ -103,7 +103,7 @@ |
||
103 | 103 | $methods['image'][$paymentMethod->getMethodId()] = $this->imageResolver->resolve($paymentMethod); |
104 | 104 | $methods['issuers'][$paymentMethod->getMethodId()] = $paymentMethod->getIssuers(); |
105 | 105 | $methods['paymentFee'][$paymentMethod->getMethodId()] = $paymentMethod->getPaymentSurchargeFee()->getType() |
106 | - ? $paymentMethod->getPaymentSurchargeFee(): []; |
|
106 | + ? $paymentMethod->getPaymentSurchargeFee() : []; |
|
107 | 107 | } |
108 | 108 | } |
109 | 109 |
@@ -28,8 +28,7 @@ discard block |
||
28 | 28 | /** @var OldShipmentItemsRemoverInterface */ |
29 | 29 | private $shipmentItemsRemover; |
30 | 30 | |
31 | - public function __construct |
|
32 | - ( |
|
31 | + public function __construct( |
|
33 | 32 | RepositoryInterface $unitsItemRepository, |
34 | 33 | OldShipmentItemsRemoverInterface $shipmentItemsRemover |
35 | 34 | ) { |
@@ -58,7 +57,7 @@ discard block |
||
58 | 57 | |
59 | 58 | private function getShippedItemQuantity(OrderInterface $order, int $itemId): int |
60 | 59 | { |
61 | - $itemCollection = $order->getItems()->filter(function (OrderItemInterface $item) use ($itemId) { |
|
60 | + $itemCollection = $order->getItems()->filter(function(OrderItemInterface $item) use ($itemId) { |
|
62 | 61 | return $item->getId() === $itemId; |
63 | 62 | }); |
64 | 63 |
@@ -43,7 +43,7 @@ |
||
43 | 43 | { |
44 | 44 | foreach ($mollieOrder->lines as $line) { |
45 | 45 | if ($itemId === $line->metadata->item_id) { |
46 | - return (string)$line->id; |
|
46 | + return (string) $line->id; |
|
47 | 47 | } |
48 | 48 | } |
49 | 49 |
@@ -16,8 +16,7 @@ |
||
16 | 16 | /** @var MollieLoggerActionInterface */ |
17 | 17 | private $loggerAction; |
18 | 18 | |
19 | - public function __construct |
|
20 | - ( |
|
19 | + public function __construct( |
|
21 | 20 | OrderPaymentRefundInterface $orderPaymentRefund, |
22 | 21 | MollieLoggerActionInterface $loggerAction |
23 | 22 | ) { |
@@ -55,7 +55,7 @@ |
||
55 | 55 | } |
56 | 56 | |
57 | 57 | do { |
58 | - $hash = md5(uniqid((string)mt_rand(), true)); |
|
58 | + $hash = md5(uniqid((string) mt_rand(), true)); |
|
59 | 59 | $path = $this->expandPath($hash . '.' . $file->guessExtension()); |
60 | 60 | } while ($this->isAdBlockingProne($path) || $this->filesystem->has($path)); |
61 | 61 |
@@ -73,8 +73,7 @@ |
||
73 | 73 | 'webhookUrl' => $details['webhookUrl'], |
74 | 74 | 'lines' => $details['lines'], |
75 | 75 | 'expiresAt' => isset($dateExpired) ? |
76 | - $dateExpired->format('Y-m-d') : |
|
77 | - (new \DateTimeImmutable('now'))->format('Y-m-d'), |
|
76 | + $dateExpired->format('Y-m-d') : (new \DateTimeImmutable('now'))->format('Y-m-d'), |
|
78 | 77 | ]); |
79 | 78 | } catch (\Exception $e) { |
80 | 79 | $this->loggerAction->addNegativeLog(sprintf('Error with create order with: %s', $e->getMessage())); |