@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | |
| 27 | 27 | $this->app->when(ExpoChannel::class) |
| 28 | 28 | ->needs(Expo::class) |
| 29 | - ->give(function () use ($repository) { |
|
| 29 | + ->give(function() use ($repository) { |
|
| 30 | 30 | return new Expo(new ExpoRegistrar($repository)); |
| 31 | 31 | }); |
| 32 | 32 | |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | */ |
| 85 | 85 | private function shouldPublishMigrations(ExpoRepository $repository) |
| 86 | 86 | { |
| 87 | - if ($repository instanceof ExpoDatabaseDriver && ! class_exists('CreateExponentPushNotificationInterestsTable')) { |
|
| 87 | + if ($repository instanceof ExpoDatabaseDriver && !class_exists('CreateExponentPushNotificationInterestsTable')) { |
|
| 88 | 88 | $timestamp = date('Y_m_d_His', time()); |
| 89 | 89 | $this->publishes([ |
| 90 | 90 | __DIR__.'/../migrations/create_exponent_push_notification_interests_table.php.stub' => database_path("/migrations/{$timestamp}_create_exponent_push_notification_interests_table.php"), |
@@ -82,7 +82,7 @@ |
||
| 82 | 82 | return $this; |
| 83 | 83 | } |
| 84 | 84 | |
| 85 | - public function setJsonData(array|string $data): self |
|
| 85 | + public function setJsonData(array | string $data): self |
|
| 86 | 86 | { |
| 87 | 87 | if (is_array($data)) { |
| 88 | 88 | $data = json_encode($data); |
@@ -5,8 +5,8 @@ |
||
| 5 | 5 | |
| 6 | 6 | Route::prefix('exponent/devices') |
| 7 | 7 | ->middleware('expo.middleware') |
| 8 | - ->group(function () { |
|
| 9 | - Route::controller(ExpoController::class)->group(function () { |
|
| 8 | + ->group(function() { |
|
| 9 | + Route::controller(ExpoController::class)->group(function() { |
|
| 10 | 10 | Route::post('subscribe', 'subscribe'); |
| 11 | 11 | Route::post('unsubscribe', 'unsubscribe'); |
| 12 | 12 | }); |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | |
| 13 | 13 | public function expo() |
| 14 | 14 | { |
| 15 | - return function (ExpoRouterActionEnum ...$options) { |
|
| 15 | + return function(ExpoRouterActionEnum ...$options) { |
|
| 16 | 16 | ExpoRouter::$isBlockedBaseRoutes = true; |
| 17 | 17 | |
| 18 | 18 | $routerActions = array_column(ExpoRouterActionEnum::cases(), 'value'); |
@@ -28,8 +28,8 @@ discard block |
||
| 28 | 28 | $this->group([ |
| 29 | 29 | 'prefix' => 'exponent/devices', |
| 30 | 30 | 'middleware' => 'expo.middleware', |
| 31 | - ], function () use ($defaultOptions) { |
|
| 32 | - $this->controller(ExpoController::class)->group(function () use ($defaultOptions) { |
|
| 31 | + ], function() use ($defaultOptions) { |
|
| 32 | + $this->controller(ExpoController::class)->group(function() use ($defaultOptions) { |
|
| 33 | 33 | when($defaultOptions['subscribe'], fn () => $this->post('subscribe', 'subscribe')); |
| 34 | 34 | when($defaultOptions['unsubscribe'], fn () => $this->post('unsubscribe', 'unsubscribe')); |
| 35 | 35 | }); |