Passed
Pull Request — master (#16)
by CHATARD
11:55
created
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.
src/Action/StatusAction.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,8 +39,7 @@
 block discarded – undo
39 39
     /** @var MollieLoggerActionInterface */
40 40
     private $loggerAction;
41 41
 
42
-    public function __construct
43
-    (
42
+    public function __construct(
44 43
         PaymentRefundInterface $paymentRefund,
45 44
         OrderRefundInterface $orderRefund,
46 45
         MollieLoggerActionInterface $loggerAction
Please login to merge, or discard this patch.
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.