Passed
Branch master (b4013d)
by Tim
07:57
created
Category
src/FetchPaymentsDataFromStripeApi.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,11 +21,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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(
Please login to merge, or discard this patch.
src/StripePaymentsStore.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,6 +27,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.