Passed
Pull Request — master (#27)
by Jeroen
08:09 queued 02:42
created
src/Form/Type/DirectDebitType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Resolver/MolliePaymentsMethodResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Resolver/PartialShip/FromMollieToSyliusResolver.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,8 +28,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Resolver/PartialShip/FromSyliusToMollieLinesResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/EventListener/PaymentPartialEventListener.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,8 +16,7 @@
 block discarded – undo
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
     ) {
Please login to merge, or discard this patch.
src/Uploader/PaymentMethodLogoUploader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Action/Api/CreateOrderAction.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,8 +73,7 @@
 block discarded – undo
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()));
Please login to merge, or discard this patch.
src/Action/StateMachine/SetStatusOrderAction.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,8 +33,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Action/RefundAction.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,8 +36,7 @@
 block discarded – undo
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
     ) {
Please login to merge, or discard this patch.