@@ -21,11 +21,11 @@ discard block |
||
21 | 21 | $this->info('Fetching Stripe payments ...'); |
22 | 22 | |
23 | 23 | $payments = $stripe->charges->all( |
24 | - config('dashboard.tiles.stripe.payments.params') ?? ['limit' => 5] |
|
24 | + config('dashboard.tiles.stripe.payments.params') ?? [ 'limit' => 5 ] |
|
25 | 25 | ); |
26 | 26 | |
27 | 27 | $payments = collect($payments->data) |
28 | - ->map(function ($payment) { |
|
28 | + ->map(function($payment) { |
|
29 | 29 | return [ |
30 | 30 | 'id' => $payment->id, |
31 | 31 | 'amount' => $this->toReadableAmount($payment->amount), |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | */ |
58 | 58 | public function getCustomerEmailFromStripe(?string $customer = null): ?string |
59 | 59 | { |
60 | - if (! $customer) { |
|
60 | + if (!$customer) { |
|
61 | 61 | return null; |
62 | 62 | } |
63 | 63 | $stripe = new StripeClient( |
@@ -27,6 +27,6 @@ |
||
27 | 27 | |
28 | 28 | public function getData(): array |
29 | 29 | { |
30 | - return $this->tile->getData('stripe.payments') ?? []; |
|
30 | + return $this->tile->getData('stripe.payments') ?? [ ]; |
|
31 | 31 | } |
32 | 32 | } |