Skip to content

Commit 0b182bd

Browse files
authored
Merge pull request #67 from cretueusebiu/analysis-yv2BbN
Apply fixes from StyleCI
2 parents 1aeb465 + b114c92 commit 0b182bd

11 files changed

+19
-19
lines changed

app/Events/NotificationRead.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
namespace App\Events;
44

5-
use Illuminate\Queue\SerializesModels;
6-
use Illuminate\Broadcasting\PrivateChannel;
75
use Illuminate\Broadcasting\InteractsWithSockets;
6+
use Illuminate\Broadcasting\PrivateChannel;
87
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
8+
use Illuminate\Queue\SerializesModels;
99

1010
class NotificationRead implements ShouldBroadcast
1111
{

app/Events/NotificationReadAll.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
namespace App\Events;
44

5-
use Illuminate\Queue\SerializesModels;
6-
use Illuminate\Broadcasting\PrivateChannel;
75
use Illuminate\Broadcasting\InteractsWithSockets;
6+
use Illuminate\Broadcasting\PrivateChannel;
87
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
8+
use Illuminate\Queue\SerializesModels;
99

1010
class NotificationReadAll implements ShouldBroadcast
1111
{

app/Http/Controllers/Auth/RegisterController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
namespace App\Http\Controllers\Auth;
44

5-
use App\Models\User;
65
use App\Http\Controllers\Controller;
7-
use Illuminate\Support\Facades\Validator;
6+
use App\Models\User;
87
use Illuminate\Foundation\Auth\RegistersUsers;
8+
use Illuminate\Support\Facades\Validator;
99

1010
class RegisterController extends Controller
1111
{

app/Http/Controllers/NotificationController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
namespace App\Http\Controllers;
44

5-
use Illuminate\Http\Request;
65
use App\Events\NotificationRead;
76
use App\Events\NotificationReadAll;
87
use App\Notifications\HelloNotification;
8+
use Illuminate\Http\Request;
99
use NotificationChannels\WebPush\PushSubscription;
1010

1111
class NotificationController extends Controller

app/Http/Controllers/PushSubscriptionController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
namespace App\Http\Controllers;
44

5+
use Illuminate\Foundation\Validation\ValidatesRequests;
56
use Illuminate\Http\Request;
67
use Illuminate\Routing\Controller;
7-
use Illuminate\Foundation\Validation\ValidatesRequests;
88

99
class PushSubscriptionController extends Controller
1010
{

app/Notifications/HelloNotification.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
namespace App\Notifications;
44

55
use Illuminate\Bus\Queueable;
6-
use Illuminate\Support\Carbon;
7-
use Illuminate\Notifications\Notification;
86
use Illuminate\Contracts\Queue\ShouldQueue;
9-
use NotificationChannels\WebPush\WebPushMessage;
7+
use Illuminate\Notifications\Notification;
8+
use Illuminate\Support\Carbon;
109
use NotificationChannels\WebPush\WebPushChannel;
10+
use NotificationChannels\WebPush\WebPushMessage;
1111

1212
class HelloNotification extends Notification
1313
{
@@ -46,7 +46,7 @@ public function toArray($notifiable)
4646
'title' => 'Hello from Laravel!',
4747
'body' => 'Thank you for using our application.',
4848
'action_url' => 'https://laravel.com',
49-
'created' => Carbon::now()->toIso8601String()
49+
'created' => Carbon::now()->toIso8601String(),
5050
];
5151
}
5252

database/migrations/2016_07_30_000002_create_notifications_table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

3-
use Illuminate\Support\Facades\Schema;
4-
use Illuminate\Database\Schema\Blueprint;
53
use Illuminate\Database\Migrations\Migration;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Support\Facades\Schema;
66

77
class CreateNotificationsTable extends Migration
88
{

database/migrations/2021_01_08_141727_create_push_subscriptions_table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

3-
use Illuminate\Support\Facades\Schema;
4-
use Illuminate\Database\Schema\Blueprint;
53
use Illuminate\Database\Migrations\Migration;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Support\Facades\Schema;
66

77
class CreatePushSubscriptionsTable extends Migration
88
{

routes/web.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@
4040
Route::get('manifest.json', function () {
4141
return [
4242
'name' => config('app.name'),
43-
'gcm_sender_id' => config('webpush.gcm.sender_id')
43+
'gcm_sender_id' => config('webpush.gcm.sender_id'),
4444
];
4545
});

tests/Feature/ExampleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace Tests\Feature;
44

5-
use Tests\TestCase;
65
use Illuminate\Foundation\Testing\RefreshDatabase;
6+
use Tests\TestCase;
77

88
class ExampleTest extends TestCase
99
{

tests/Unit/ExampleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace Tests\Unit;
44

5-
use Tests\TestCase;
65
use Illuminate\Foundation\Testing\RefreshDatabase;
6+
use Tests\TestCase;
77

88
class ExampleTest extends TestCase
99
{

0 commit comments

Comments
 (0)