Passed
Pull Request — master (#27)
by Jeroen
08:09 queued 02:42
created
src/Creator/OrderRefundCommandCreator.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,8 +38,7 @@
 block discarded – undo
38 38
     /** @var RefundPaymentMethodsProviderInterface */
39 39
     private $refundPaymentMethodProvider;
40 40
 
41
-    public function __construct
42
-    (
41
+    public function __construct(
43 42
         RepositoryInterface $orderRepository,
44 43
         UnitsItemOrderRefundInterface $unitsItemOrderRefund,
45 44
         UnitsShipmentOrderRefundInterface $shipmentOrderRefund,
Please login to merge, or discard this patch.
src/Purifier/PartialShip/OrderMolliePartialShip.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,8 +32,7 @@
 block discarded – undo
32 32
     /** @var FromSyliusToMollieLinesResolverInterface */
33 33
     private $mollieUnitsResolver;
34 34
 
35
-    public function __construct
36
-    (
35
+    public function __construct(
37 36
         MollieApiClient $apiClient,
38 37
         MollieLoggerActionInterface $loggerAction,
39 38
         FromSyliusToMollieLinesResolverInterface $mollieUnitsResolver
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/MollieGatewayConfigurationType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
                 'label' => 'bitbag_sylius_mollie_plugin.ui.debug_level_log',
87 87
                 'choices' => Options::getDebugLevels(),
88 88
             ])
89
-            ->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) {
89
+            ->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) {
90 90
                 $data = $event->getData();
91 91
 
92 92
                 $data['payum.http_client'] = '@bitbag_sylius_mollie_plugin.mollie_api_client';
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/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/Factory/MollieSubscriptionGatewayFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
                 'interval',
46 46
             ];
47 47
 
48
-            $config['payum.api'] = function (ArrayObject $config) use ($environment) {
48
+            $config['payum.api'] = function(ArrayObject $config) use ($environment) {
49 49
                 $config->validateNotEmpty($config['payum.required_options']);
50 50
 
51 51
                 /** @var MollieApiClient $mollieApiClient */
Please login to merge, or discard this patch.
src/PartialShip/CreatePartialShipFromMollie.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,8 +31,7 @@  discard block
 block discarded – undo
31 31
     /** @var FromMollieToSyliusResolverInterface */
32 32
     private $fromMollieToSyliusResolver;
33 33
 
34
-    public function __construct
35
-    (
34
+    public function __construct(
36 35
         ShipmentFactoryInterface $shipmentFactory,
37 36
         RepositoryInterface $orderRepository,
38 37
         FromMollieToSyliusResolverInterface $fromMollieToSyliusResolver
@@ -52,7 +51,7 @@  discard block
 block discarded – undo
52 51
 
53 52
         /** @var Collection $shipments */
54 53
         $shipments = $order->getShipments();
55
-        $shipmentsToRemove = $shipments->filter(static function (ShipmentInterface $shipment): bool {
54
+        $shipmentsToRemove = $shipments->filter(static function(ShipmentInterface $shipment): bool {
56 55
             return $shipment->getState() === ShipmentInterface::STATE_READY && $shipment->getUnits()->isEmpty();
57 56
         });
58 57
 
Please login to merge, or discard this patch.