@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -Route::group(['prefix' => 'api/exponent/devices', 'middleware' => ['auth:api', 'bindings']], function () { |
|
| 3 | +Route::group(['prefix' => 'api/exponent/devices', 'middleware' => ['auth:api', 'bindings']], function() { |
|
| 4 | 4 | Route::post('subscribe', [ |
| 5 | 5 | 'as' => 'register-interest', |
| 6 | 6 | 'uses' => 'NotificationChannels\ExpoPushNotifications\Http\ExpoController@subscribe', |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | |
| 23 | 23 | $this->mergeConfigFrom(__DIR__.'/../config/exponent-push-notifications.php', 'exponent-push-notifications'); |
| 24 | 24 | |
| 25 | - if (! class_exists('CreateExponentPushNotificationInterestsTable')) { |
|
| 25 | + if (!class_exists('CreateExponentPushNotificationInterestsTable')) { |
|
| 26 | 26 | $timestamp = date('Y_m_d_His', time()); |
| 27 | 27 | $this->publishes([ |
| 28 | 28 | __DIR__.'/../migrations/create_exponent_push_notification_interests_table.php.stub' => database_path("/migrations/{$timestamp}_create_exponent_push_notification_interests_table.php"), |
@@ -31,10 +31,10 @@ discard block |
||
| 31 | 31 | |
| 32 | 32 | $this->app->when(ExpoChannel::class) |
| 33 | 33 | ->needs(Expo::class) |
| 34 | - ->give(function () { |
|
| 34 | + ->give(function() { |
|
| 35 | 35 | $driver = new ExpoFileDriver(); |
| 36 | 36 | |
| 37 | - if(config('exponent-push-notifications.interests.driver') === 'database') { |
|
| 37 | + if (config('exponent-push-notifications.interests.driver') === 'database') { |
|
| 38 | 38 | $driver = new ExpoDatabaseDriver(); |
| 39 | 39 | } |
| 40 | 40 | |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | { |
| 53 | 53 | $driverClass = ExpoFileDriver::class; |
| 54 | 54 | |
| 55 | - if(config('exponent-push-notifications.interests.driver') === 'database') { |
|
| 55 | + if (config('exponent-push-notifications.interests.driver') === 'database') { |
|
| 56 | 56 | $driverClass = ExpoDatabaseDriver::class; |
| 57 | 57 | } |
| 58 | 58 | |