Passed
Push — master ( aad1d3...713f8f )
by
unknown
07:45
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/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/Purifier/PartialShip/OrderShipmentPurifier.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     {
32 32
         /** @var Collection $shipments */
33 33
         $shipments = $order->getShipments();
34
-        $shipmentsToRemove = $shipments->filter(static function (ShipmentInterface $shipment): bool {
34
+        $shipmentsToRemove = $shipments->filter(static function(ShipmentInterface $shipment): bool {
35 35
             return $shipment->getState() === ShipmentInterface::STATE_READY && $shipment->getUnits()->isEmpty();
36 36
         });
37 37
 
Please login to merge, or discard this patch.
src/Form/Type/PartialShip/ShippingUnitsChoiceType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
     {
35 35
         $resolver
36 36
             ->setDefaults([
37
-                'choice_label' => static function (ShipmentUnitInterface $orderItemUnit): string {
37
+                'choice_label' => static function(ShipmentUnitInterface $orderItemUnit): string {
38 38
                     /** @var ProductVariantInterface $shippable */
39 39
                     $shippable = $orderItemUnit->getShippable();
40 40
 
Please login to merge, or discard this patch.
src/Form/Type/PartialShip/PartialShipType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
             ])
42 42
         ;
43 43
 
44
-        $builder->addEventListener(FormEvents::POST_SUBMIT, static function (FormEvent $formEvent): void {
44
+        $builder->addEventListener(FormEvents::POST_SUBMIT, static function(FormEvent $formEvent): void {
45 45
             /** @var ShipmentInterface $shipment */
46 46
             $shipment = $formEvent->getData();
47 47
 
Please login to merge, or discard this patch.
src/Resolver/PartialShip/FromMollieToSyliusResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
 
58 58
     private function getShippedItemQuantity(OrderInterface $order, int $itemId): int
59 59
     {
60
-        $itemCollection = $order->getItems()->filter(function (OrderItemInterface $item) use ($itemId) {
60
+        $itemCollection = $order->getItems()->filter(function(OrderItemInterface $item) use ($itemId) {
61 61
             return $item->getId() === $itemId;
62 62
         });
63 63
 
Please login to merge, or discard this patch.
src/PartialShip/CreatePartialShipFromMollie.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 
52 52
         /** @var Collection $shipments */
53 53
         $shipments = $order->getShipments();
54
-        $shipmentsToRemove = $shipments->filter(static function (ShipmentInterface $shipment): bool {
54
+        $shipmentsToRemove = $shipments->filter(static function(ShipmentInterface $shipment): bool {
55 55
             return $shipment->getState() === ShipmentInterface::STATE_READY && $shipment->getUnits()->isEmpty();
56 56
         });
57 57
 
Please login to merge, or discard this patch.
src/Entity/GatewayConfigTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
 
32 32
     public function getMethodByName(string $methodName): ?MollieGatewayConfigInterface
33 33
     {
34
-        $method = $this->mollieGatewayConfig->filter(function (MollieGatewayConfigInterface $mollieGatewayConfig) use ($methodName) {
34
+        $method = $this->mollieGatewayConfig->filter(function(MollieGatewayConfigInterface $mollieGatewayConfig) use ($methodName) {
35 35
             return $mollieGatewayConfig->getMethodId() === $methodName;
36 36
         });
37 37
 
Please login to merge, or discard this patch.
src/Form/Type/MollieGatewayConfigType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.