@@ -73,7 +73,7 @@ |
||
73 | 73 | ], |
74 | 74 | 'label' => 'eres_sylius_iyzico_plugin.ui.threeds', |
75 | 75 | ]) |
76 | - ->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) { |
|
76 | + ->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) { |
|
77 | 77 | if (!method_exists(Customer::class, 'getIdentityNumber')) { |
78 | 78 | $this->flashBag->set('error', 'Iyzico payment plugin Installation failed'); |
79 | 79 | } |
@@ -34,7 +34,7 @@ |
||
34 | 34 | 'secret_key', |
35 | 35 | ]; |
36 | 36 | |
37 | - $config['payum.api'] = static function (ArrayObject $config): array { |
|
37 | + $config['payum.api'] = static function(ArrayObject $config): array { |
|
38 | 38 | $config->validateNotEmpty($config['payum.required_options']); |
39 | 39 | |
40 | 40 | return [ |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | 'street' => $order->getShippingAddress()->getStreet(), |
65 | 65 | 'postcode' => $order->getShippingAddress()->getPostcode(), |
66 | 66 | ], |
67 | - 'iyzico_items' => array_map(function ($orderItem) { |
|
67 | + 'iyzico_items' => array_map(function($orderItem) { |
|
68 | 68 | return [ |
69 | 69 | 'id' => $orderItem->getId(), |
70 | 70 | 'name' => $orderItem->getProductName(), |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | 'category' => $orderItem->getProduct()->getMainTaxon() ? $orderItem->getProduct()->getMainTaxon()->getName() : "empty" |
73 | 73 | ]; |
74 | 74 | }, iterator_to_array($order->getItems())), |
75 | - 'iyzico_shipment' => array_map(function ($shipment) use ($order) { |
|
75 | + 'iyzico_shipment' => array_map(function($shipment) use ($order) { |
|
76 | 76 | return [ |
77 | 77 | 'id' => $shipment->getMethod()->getId(), |
78 | 78 | 'name' => $shipment->getMethod()->getName(), |