Test Failed
Pull Request — master (#12)
by
unknown
04:19
created
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' => ['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',
Please login to merge, or discard this patch.
src/ExpoPushNotificationsServiceProvider.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
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,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
         $this->app->when(ExpoChannel::class)
33 33
             ->needs(Expo::class)
34
-            ->give(function () {
34
+            ->give(function() {
35 35
                 return new Expo(new ExpoRegistrar($this->getInterestsDriver()));
36 36
             });
37 37
 
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,8 +5,8 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/ExpoChannel.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,11 +2,11 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Http/ExpoController.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace NotificationChannels\ExpoPushNotifications\Http;
4 4
 
5
-use Illuminate\Http\Request;
6 5
 use Illuminate\Http\JsonResponse;
6
+use Illuminate\Http\Request;
7 7
 use Illuminate\Routing\Controller;
8 8
 use Illuminate\Support\Facades\Auth;
9 9
 use Illuminate\Support\Facades\Validator;
Please login to merge, or discard this patch.
src/Repositories/ExpoDatabaseDriver.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
         // Delete interest
51 51
         $delete = Interest::where('key', $key);
52 52
 
53
-        if(isset($value))
53
+        if (isset($value))
54 54
         {
55 55
             // Only delete this token
56 56
             $delete->where('value', $value);
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         // Check if our interest exist
62 62
         $count = Interest::where('key', $key);
63 63
 
64
-        if(isset($value))
64
+        if (isset($value))
65 65
         {
66 66
             $count->where('value', $value);
67 67
         }
Please login to merge, or discard this patch.