Passed
Pull Request — master (#3)
by
unknown
08:18 queued 02:12
created
src/Resolver/PaymentStateResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
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'])) {
Please login to merge, or discard this patch.
src/Action/CaptureAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
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']);
Please login to merge, or discard this patch.
src/Form/Type/CoinbaseGatewayConfigurationType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
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';
Please login to merge, or discard this patch.