@@ -2,4 +2,4 @@ |
||
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'); |
@@ -21,7 +21,7 @@ discard block |
||
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 |
||
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 |
||
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', |
@@ -61,7 +61,7 @@ |
||
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 |