Passed
Pull Request — master (#78)
by
unknown
11:06 queued 01:09
created
src/ExpoMessage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -235,7 +235,7 @@
 block discarded – undo
235 235
             'data'      =>  $this->jsonData,
236 236
             'priority'  =>  $this->priority,
237 237
         ];
238
-        if (! empty($this->channelId)) {
238
+        if (!empty($this->channelId)) {
239 239
             $message['channelId'] = $this->channelId;
240 240
         }
241 241
 
Please login to merge, or discard this patch.
src/Http/routes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-Route::group(['prefix' => 'api/exponent/devices', 'middleware' => 'expo.middleware'], function () {
3
+Route::group(['prefix' => 'api/exponent/devices', 'middleware' => 'expo.middleware'], function() {
4 4
     Route::post('subscribe', [
5 5
         'as'    =>  'register-interest',
6 6
         'uses'  =>  'NotificationChannels\ExpoPushNotifications\Http\ExpoController@subscribe',
Please login to merge, or discard this patch.
src/ExpoPushNotificationsServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,13 +26,13 @@  discard block
 block discarded – undo
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
 
33 33
         $router = $this->app['router'];
34 34
         
35
-        $router->middlewareGroup('expo.middleware', isset(config('exponent-push-notifications')['middleware']) ? config('exponent-push-notifications')['middleware'] : [] );
35
+        $router->middlewareGroup('expo.middleware', isset(config('exponent-push-notifications')['middleware']) ? config('exponent-push-notifications')['middleware'] : []);
36 36
 
37 37
 
38 38
         $this->loadRoutesFrom(__DIR__.'/Http/routes.php');
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      */
90 90
     private function shouldPublishMigrations(ExpoRepository $repository)
91 91
     {
92
-        if ($repository instanceof ExpoDatabaseDriver && ! class_exists('CreateExponentPushNotificationInterestsTable')) {
92
+        if ($repository instanceof ExpoDatabaseDriver && !class_exists('CreateExponentPushNotificationInterestsTable')) {
93 93
             $timestamp = date('Y_m_d_His', time());
94 94
             $this->publishes([
95 95
                 __DIR__.'/../migrations/create_exponent_push_notification_interests_table.php.stub' => database_path("/migrations/{$timestamp}_create_exponent_push_notification_interests_table.php"),
Please login to merge, or discard this patch.