@@ -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', |
@@ -5,8 +5,8 @@ |
||
5 | 5 | use ExponentPhpSDK\Expo; |
6 | 6 | use ExponentPhpSDK\ExpoRegistrar; |
7 | 7 | use ExponentPhpSDK\ExpoRepository; |
8 | -use Illuminate\Support\ServiceProvider; |
|
9 | 8 | use ExponentPhpSDK\Repositories\ExpoFileDriver; |
9 | +use Illuminate\Support\ServiceProvider; |
|
10 | 10 | use NotificationChannels\ExpoPushNotifications\Repositories\ExpoDatabaseDriver; |
11 | 11 | |
12 | 12 | class ExpoPushNotificationsServiceProvider extends ServiceProvider |
@@ -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 | |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | protected function setupConfig() |
70 | 70 | { |
71 | 71 | $this->publishes([ |
72 | - __DIR__ . '/../config/exponent-push-notifications.php' => config_path('exponent-push-notifications.php'), |
|
72 | + __DIR__.'/../config/exponent-push-notifications.php' => config_path('exponent-push-notifications.php'), |
|
73 | 73 | ], 'config'); |
74 | 74 | |
75 | 75 | $this->mergeConfigFrom(__DIR__.'/../config/exponent-push-notifications.php', 'exponent-push-notifications'); |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | if ($repository instanceof ExpoDatabaseDriver && !class_exists('CreateExponentPushNotificationInterestsTable')) { |
88 | 88 | $timestamp = date('Y_m_d_His', time()); |
89 | 89 | $this->publishes([ |
90 | - __DIR__ . '/../migrations/create_exponent_push_notification_interests_table.php.stub' => database_path("/migrations/{$timestamp}_create_exponent_push_notification_interests_table.php"), |
|
90 | + __DIR__.'/../migrations/create_exponent_push_notification_interests_table.php.stub' => database_path("/migrations/{$timestamp}_create_exponent_push_notification_interests_table.php"), |
|
91 | 91 | ], 'migrations'); |
92 | 92 | } |
93 | 93 | } |
@@ -2,11 +2,11 @@ |
||
2 | 2 | |
3 | 3 | namespace NotificationChannels\ExpoPushNotifications; |
4 | 4 | |
5 | +use ExponentPhpSDK\Exceptions\ExpoException; |
|
5 | 6 | use ExponentPhpSDK\Expo; |
6 | -use Illuminate\Notifications\Notification; |
|
7 | 7 | use Illuminate\Contracts\Events\Dispatcher; |
8 | -use ExponentPhpSDK\Exceptions\ExpoException; |
|
9 | 8 | use Illuminate\Notifications\Events\NotificationFailed; |
9 | +use Illuminate\Notifications\Notification; |
|
10 | 10 | use NotificationChannels\ExpoPushNotifications\Exceptions\CouldNotSendNotification; |
11 | 11 | |
12 | 12 | class ExpoChannel |