Passed
Push — master ( ff4e9f...624a9a )
by Arthur
35:46
created
src/Modules/Notification/Providers/NotificationServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Database/Migrations/2018_10_27_122953_create_notifications_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
src/Modules/Demo/Jobs/SeedDemoDataJob.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
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
         });
Please login to merge, or discard this patch.
src/Foundation/Routes/channels.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,6 +11,6 @@
 block discarded – undo
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
 });
Please login to merge, or discard this patch.
src/Foundation/Traits/MutatesRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,6 +13,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Modules/Authorization/Services/AuthorizationService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,6 +37,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Modules/User/Entities/User.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,16 +40,16 @@
 block discarded – undo
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',
Please login to merge, or discard this patch.
src/Modules/Machine/Events/MachineUpdatedEvent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Modules/Machine/Services/MachineService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,8 +56,8 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.