Passed
Branch master (9cb681)
by Mike
04:02
created
Category
routes/api.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,4 +2,4 @@
 block discarded – undo
2 2
 
3 3
 use GeneaLabs\LaravelMixpanel\Http\Controllers\StripeWebhooksController;
4 4
 
5
-Route::post('genealabs/laravel-mixpanel/stripe', StripeWebhooksController::class .'@postTransaction');
5
+Route::post('genealabs/laravel-mixpanel/stripe', StripeWebhooksController::class . '@postTransaction');
Please login to merge, or discard this patch.
src/Http/Requests/RecordStripeEvent.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     {
22 22
         $data = $this->json()->all();
23 23
 
24
-        if (! $data || ! array_key_exists('data', $data)) {
24
+        if ( ! $data || ! array_key_exists('data', $data)) {
25 25
             return;
26 26
         }
27 27
 
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         $authModel = config('auth.providers.users.model') ?? config('auth.model');
34 34
         $user = app($authModel)->where('stripe_id', $stripeCustomerId)->first();
35 35
 
36
-        if (! $user) {
36
+        if ( ! $user) {
37 37
             return;
38 38
         }
39 39
 
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
             ];
71 71
         }
72 72
 
73
-        if (! $transaction['paid'] && $transaction['captured'] && ! $transaction['refunded']) {
73
+        if ( ! $transaction['paid'] && $transaction['captured'] && ! $transaction['refunded']) {
74 74
             $trackingData = [
75 75
                 ['Payment', [
76 76
                     'Status' => 'Failed',
Please login to merge, or discard this patch.
src/LaravelMixpanel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
         $data = array_filter($data);
62 62
         $properties = array_filter($properties);
63 63
 
64
-        if ((! array_key_exists('$browser', $data)) && $browserInfo->isRobot()) {
64
+        if (( ! array_key_exists('$browser', $data)) && $browserInfo->isRobot()) {
65 65
             $data['$browser'] = 'Robot';
66 66
         }
67 67
 
Please login to merge, or discard this patch.