@@ -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'); |
|
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | { |
| 24 | 24 | $data = $this->json()->all(); |
| 25 | 25 | |
| 26 | - if (! $data || ! ($data['data'] ?? false)) { |
|
| 26 | + if ( ! $data || ! ($data['data'] ?? false)) { |
|
| 27 | 27 | return; |
| 28 | 28 | } |
| 29 | 29 | |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | $authModel = config('auth.providers.users.model') ?? config('auth.model'); |
| 36 | 36 | $user = app($authModel)->where('stripe_id', $stripeCustomerId)->first(); |
| 37 | 37 | |
| 38 | - if (! $user) { |
|
| 38 | + if ( ! $user) { |
|
| 39 | 39 | return; |
| 40 | 40 | } |
| 41 | 41 | |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | 'ip' => $this->request->ip(), |
| 49 | 49 | ]; |
| 50 | 50 | |
| 51 | - if ((! array_key_exists('$browser', $data)) && $browserInfo->isRobot()) { |
|
| 51 | + if (( ! array_key_exists('$browser', $data)) && $browserInfo->isRobot()) { |
|
| 52 | 52 | $data['$browser'] = 'Robot'; |
| 53 | 53 | } |
| 54 | 54 | |