@@ -25,7 +25,7 @@ |
||
25 | 25 | */ |
26 | 26 | public function register() |
27 | 27 | { |
28 | - $this->app->bind(NotificationServiceContract::class, function () { |
|
28 | + $this->app->bind(NotificationServiceContract::class, function() { |
|
29 | 29 | return new NotificationService(new UserService()); |
30 | 30 | }); |
31 | 31 | } |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('notifications', function (Blueprint $table) { |
|
16 | + Schema::create('notifications', function(Blueprint $table) { |
|
17 | 17 | $table->uuid('id')->primary(); |
18 | 18 | $table->string('type'); |
19 | 19 | $table->morphs('notifiable'); |
@@ -18,7 +18,7 @@ |
||
18 | 18 | { |
19 | 19 | public function handle() |
20 | 20 | { |
21 | - Model::unguarded(function () { |
|
21 | + Model::unguarded(function() { |
|
22 | 22 | $seeder = app()->make(DemoSeeder::class); |
23 | 23 | $seeder->__invoke(); |
24 | 24 | }); |
@@ -11,6 +11,6 @@ |
||
11 | 11 | | |
12 | 12 | */ |
13 | 13 | |
14 | -Broadcast::channel('user.{id}', function ($user, $id) { |
|
14 | +Broadcast::channel('user.{id}', function($user, $id) { |
|
15 | 15 | return $user->id === (int) $id; |
16 | 16 | }); |
@@ -13,6 +13,6 @@ |
||
13 | 13 | { |
14 | 14 | public function injectUserId($request): array |
15 | 15 | { |
16 | - return array_merge($request->toArray(), ['user_id' => get_authenticated_user_id()]); |
|
16 | + return array_merge($request->toArray(), [ 'user_id' => get_authenticated_user_id() ]); |
|
17 | 17 | } |
18 | 18 | } |
@@ -37,6 +37,6 @@ |
||
37 | 37 | |
38 | 38 | public function clearPermissionCache() :void |
39 | 39 | { |
40 | - app()['cache']->forget('spatie.permission.cache'); |
|
40 | + app()[ 'cache' ]->forget('spatie.permission.cache'); |
|
41 | 41 | } |
42 | 42 | } |
@@ -40,16 +40,16 @@ |
||
40 | 40 | */ |
41 | 41 | protected $table = 'users'; |
42 | 42 | |
43 | - protected $with = ['roles', 'permissions']; |
|
43 | + protected $with = [ 'roles', 'permissions' ]; |
|
44 | 44 | |
45 | 45 | public $cacheTime = 60; |
46 | 46 | |
47 | - public $secondaryCacheIndexes = ['identity_id']; |
|
47 | + public $secondaryCacheIndexes = [ 'identity_id' ]; |
|
48 | 48 | |
49 | 49 | /** |
50 | 50 | * @var array |
51 | 51 | */ |
52 | - protected $guarded = []; |
|
52 | + protected $guarded = [ ]; |
|
53 | 53 | |
54 | 54 | protected $casts = [ |
55 | 55 | 'email_verified' => 'bool', |
@@ -16,7 +16,7 @@ |
||
16 | 16 | |
17 | 17 | class MachineUpdatedEvent extends Event implements ShouldBroadcast |
18 | 18 | { |
19 | - public $listeners = []; |
|
19 | + public $listeners = [ ]; |
|
20 | 20 | |
21 | 21 | /** |
22 | 22 | * @var Machine |
@@ -56,8 +56,8 @@ |
||
56 | 56 | { |
57 | 57 | $this->update($id, [ |
58 | 58 | 'last_heartbeat' => Carbon::now(), |
59 | - 'memory_usage' => $data['memory_usage'], |
|
60 | - 'cpu_usage' => $data['cpu_usage'], |
|
59 | + 'memory_usage' => $data[ 'memory_usage' ], |
|
60 | + 'cpu_usage' => $data[ 'cpu_usage' ], |
|
61 | 61 | 'online' => true, |
62 | 62 | ]); |
63 | 63 | } |