@@ -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); |
@@ -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())); |
@@ -33,8 +33,7 @@ discard block |
||
33 | 33 | /** @var CreatePartialShipFromMollieInterface */ |
34 | 34 | private $createPartialShipFromMollie; |
35 | 35 | |
36 | - public function __construct |
|
37 | - ( |
|
36 | + public function __construct( |
|
38 | 37 | FactoryInterface $factory, |
39 | 38 | OrderRepositoryInterface $orderRepository, |
40 | 39 | CreatePartialShipFromMollieInterface $createPartialShipFromMollie |
@@ -108,7 +107,7 @@ discard block |
||
108 | 107 | $shippableQuantity = 0; |
109 | 108 | foreach ($order->lines as $line) { |
110 | 109 | if ($line->type === 'physical') { |
111 | - $shippableQuantity = $shippableQuantity+ $line->shippableQuantity; |
|
110 | + $shippableQuantity = $shippableQuantity + $line->shippableQuantity; |
|
112 | 111 | } |
113 | 112 | } |
114 | 113 |
@@ -36,8 +36,7 @@ |
||
36 | 36 | /** @var ConvertRefundDataInterface */ |
37 | 37 | private $convertOrderRefundData; |
38 | 38 | |
39 | - public function __construct |
|
40 | - ( |
|
39 | + public function __construct( |
|
41 | 40 | MollieLoggerActionInterface $loggerAction, |
42 | 41 | ConvertRefundDataInterface $convertOrderRefundData |
43 | 42 | ) { |