diff --git a/app/Events/NotificationRead.php b/app/Events/NotificationRead.php index 505f35e..6cb8f48 100644 --- a/app/Events/NotificationRead.php +++ b/app/Events/NotificationRead.php @@ -2,10 +2,10 @@ namespace App\Events; -use Illuminate\Queue\SerializesModels; -use Illuminate\Broadcasting\PrivateChannel; use Illuminate\Broadcasting\InteractsWithSockets; +use Illuminate\Broadcasting\PrivateChannel; use Illuminate\Contracts\Broadcasting\ShouldBroadcast; +use Illuminate\Queue\SerializesModels; class NotificationRead implements ShouldBroadcast { diff --git a/app/Events/NotificationReadAll.php b/app/Events/NotificationReadAll.php index c92f5f4..3aedbb5 100644 --- a/app/Events/NotificationReadAll.php +++ b/app/Events/NotificationReadAll.php @@ -2,10 +2,10 @@ namespace App\Events; -use Illuminate\Queue\SerializesModels; -use Illuminate\Broadcasting\PrivateChannel; use Illuminate\Broadcasting\InteractsWithSockets; +use Illuminate\Broadcasting\PrivateChannel; use Illuminate\Contracts\Broadcasting\ShouldBroadcast; +use Illuminate\Queue\SerializesModels; class NotificationReadAll implements ShouldBroadcast { diff --git a/app/Http/Controllers/Auth/RegisterController.php b/app/Http/Controllers/Auth/RegisterController.php index 9ca40bd..afc9ba7 100644 --- a/app/Http/Controllers/Auth/RegisterController.php +++ b/app/Http/Controllers/Auth/RegisterController.php @@ -2,10 +2,10 @@ namespace App\Http\Controllers\Auth; -use App\Models\User; use App\Http\Controllers\Controller; -use Illuminate\Support\Facades\Validator; +use App\Models\User; use Illuminate\Foundation\Auth\RegistersUsers; +use Illuminate\Support\Facades\Validator; class RegisterController extends Controller { diff --git a/app/Http/Controllers/NotificationController.php b/app/Http/Controllers/NotificationController.php index 62bb9b8..54d26dc 100644 --- a/app/Http/Controllers/NotificationController.php +++ b/app/Http/Controllers/NotificationController.php @@ -2,10 +2,10 @@ namespace App\Http\Controllers; -use Illuminate\Http\Request; use App\Events\NotificationRead; use App\Events\NotificationReadAll; use App\Notifications\HelloNotification; +use Illuminate\Http\Request; use NotificationChannels\WebPush\PushSubscription; class NotificationController extends Controller diff --git a/app/Http/Controllers/PushSubscriptionController.php b/app/Http/Controllers/PushSubscriptionController.php index c72f439..6f65fdd 100644 --- a/app/Http/Controllers/PushSubscriptionController.php +++ b/app/Http/Controllers/PushSubscriptionController.php @@ -2,9 +2,9 @@ namespace App\Http\Controllers; +use Illuminate\Foundation\Validation\ValidatesRequests; use Illuminate\Http\Request; use Illuminate\Routing\Controller; -use Illuminate\Foundation\Validation\ValidatesRequests; class PushSubscriptionController extends Controller { diff --git a/app/Notifications/HelloNotification.php b/app/Notifications/HelloNotification.php index 30c0023..fcf707c 100644 --- a/app/Notifications/HelloNotification.php +++ b/app/Notifications/HelloNotification.php @@ -3,11 +3,11 @@ namespace App\Notifications; use Illuminate\Bus\Queueable; -use Illuminate\Support\Carbon; -use Illuminate\Notifications\Notification; use Illuminate\Contracts\Queue\ShouldQueue; -use NotificationChannels\WebPush\WebPushMessage; +use Illuminate\Notifications\Notification; +use Illuminate\Support\Carbon; use NotificationChannels\WebPush\WebPushChannel; +use NotificationChannels\WebPush\WebPushMessage; class HelloNotification extends Notification { @@ -46,7 +46,7 @@ public function toArray($notifiable) 'title' => 'Hello from Laravel!', 'body' => 'Thank you for using our application.', 'action_url' => 'https://laravel.com', - 'created' => Carbon::now()->toIso8601String() + 'created' => Carbon::now()->toIso8601String(), ]; } diff --git a/database/migrations/2016_07_30_000002_create_notifications_table.php b/database/migrations/2016_07_30_000002_create_notifications_table.php index 54ca0b0..35db4dc 100644 --- a/database/migrations/2016_07_30_000002_create_notifications_table.php +++ b/database/migrations/2016_07_30_000002_create_notifications_table.php @@ -1,8 +1,8 @@ config('app.name'), - 'gcm_sender_id' => config('webpush.gcm.sender_id') + 'gcm_sender_id' => config('webpush.gcm.sender_id'), ]; }); diff --git a/tests/Feature/ExampleTest.php b/tests/Feature/ExampleTest.php index f31e495..cdb5111 100644 --- a/tests/Feature/ExampleTest.php +++ b/tests/Feature/ExampleTest.php @@ -2,8 +2,8 @@ namespace Tests\Feature; -use Tests\TestCase; use Illuminate\Foundation\Testing\RefreshDatabase; +use Tests\TestCase; class ExampleTest extends TestCase { diff --git a/tests/Unit/ExampleTest.php b/tests/Unit/ExampleTest.php index e9fe19c..266ef35 100644 --- a/tests/Unit/ExampleTest.php +++ b/tests/Unit/ExampleTest.php @@ -2,8 +2,8 @@ namespace Tests\Unit; -use Tests\TestCase; use Illuminate\Foundation\Testing\RefreshDatabase; +use Tests\TestCase; class ExampleTest extends TestCase {