Completed
Pull Request — master (#49)
by
unknown
06:22
created
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/Form/Type/PaymentMollieType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
             ->add('molliePaymentMethods', ChoiceType::class, [
51 51
                 'label' => false,
52 52
                 'choices' => $data,
53
-                'choice_attr' => function ($value) use ($images, $paymentFee) {
53
+                'choice_attr' => function($value) use ($images, $paymentFee) {
54 54
                     return [
55 55
                         'image' => $images[$value],
56 56
                         'paymentFee' => $paymentFee[$value],
@@ -62,12 +62,12 @@  discard block
 block discarded – undo
62 62
                 'choices' => $issuers['ideal'] ?? null,
63 63
                 'choice_value' => 'id',
64 64
                 'choice_label' => 'name',
65
-                'choice_attr' => function ($value) {
65
+                'choice_attr' => function($value) {
66 66
                     return ['image' => $value->image->svg];
67 67
                 },
68 68
             ])
69 69
             ->add('cartToken', HiddenType::class)
70
-            ->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) {
70
+            ->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) {
71 71
                 $data = $event->getData();
72 72
 
73 73
                 $data['selected_issuer'] = isset($data['issuers']) ? $data['issuers']->id : null;
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/Factory/MollieGatewayFactory.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
                 $environment,
42 42
             ];
43 43
 
44
-            $config['payum.api'] = function (ArrayObject $config) use ($environment) {
44
+            $config['payum.api'] = function(ArrayObject $config) use ($environment) {
45 45
                 $config->validateNotEmpty($config['payum.required_options']);
46 46
 
47 47
                 /** @var MollieApiClient $mollieApiClient */
Please login to merge, or discard this patch.