@@ -71,7 +71,7 @@ |
||
71 | 71 | { |
72 | 72 | $paymentStateMachine = $this->stateMachineFactory->get($payment, PaymentTransitions::GRAPH); |
73 | 73 | |
74 | - $timeline = (array)$charge->timeline; |
|
74 | + $timeline = (array) $charge->timeline; |
|
75 | 75 | $timelineLast = end($timeline); |
76 | 76 | |
77 | 77 | switch (strtolower($timelineLast['status'])) { |
@@ -47,7 +47,7 @@ |
||
47 | 47 | if (isset($details['status'], $details['payment_id'])) { |
48 | 48 | $charge = $this->coinbaseApiClient->show($details['payment_id']); |
49 | 49 | |
50 | - $timeline = (array)$charge->timeline; |
|
50 | + $timeline = (array) $charge->timeline; |
|
51 | 51 | $timelineLast = end($timeline); |
52 | 52 | |
53 | 53 | $details['status'] = strtolower($timelineLast['status']); |
@@ -46,7 +46,7 @@ |
||
46 | 46 | ->add('factoryName', HiddenType::class, [ |
47 | 47 | 'empty_data' => 'coinbase', |
48 | 48 | ]) |
49 | - ->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) { |
|
49 | + ->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) { |
|
50 | 50 | $data = $event->getData(); |
51 | 51 | |
52 | 52 | $data['payum.http_client'] = '@bitbag_sylius_coinbase_plugin.api_client.coinbase'; |