Passed
Push — master ( d29a9b...25ab8d )
by Curtis
08:54 queued 03:38
created
app/DynamicRelations/Company/Discussions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,6 +15,6 @@
 block discarded – undo
15 15
 
16 16
     public function closure(): Closure
17 17
     {
18
-        return fn () => $this->morphMany(Discussion::class, 'discussable');
18
+        return fn() => $this->morphMany(Discussion::class, 'discussable');
19 19
     }
20 20
 }
Please login to merge, or discard this patch.
app/DynamicRelations/Company/Documents.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,6 +16,6 @@
 block discarded – undo
16 16
 
17 17
     public function closure(): Closure
18 18
     {
19
-        return fn () => $this->morphMany(Document::class, 'documentable');
19
+        return fn() => $this->morphMany(Document::class, 'documentable');
20 20
     }
21 21
 }
Please login to merge, or discard this patch.
app/DynamicRelations/Company/Comments.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,6 +15,6 @@
 block discarded – undo
15 15
 
16 16
     public function closure(): Closure
17 17
     {
18
-        return fn () => $this->morphMany(Comment::class, 'commentable');
18
+        return fn() => $this->morphMany(Comment::class, 'commentable');
19 19
     }
20 20
 }
Please login to merge, or discard this patch.
app/Service/enso/files/Files.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     public function delete()
53 53
     {
54 54
         if ($this->attachable->file) {
55
-            DB::transaction(function () {
55
+            DB::transaction(function() {
56 56
                 Storage::disk($this->disk)->delete($this->attachedFile());
57 57
                 $this->attachable->file->delete();
58 58
             });
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
 
164 164
     private function persistUploadedFile()
165 165
     {
166
-        DB::transaction(function () {
166
+        DB::transaction(function() {
167 167
             $this->attachable->file()->create([
168 168
                 'original_name' => $this->file->getClientOriginalName(),
169 169
                 'saved_name' => $this->file->hashName(),
Please login to merge, or discard this patch.
app/Service/enso/avatars/DefaultAvatar.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 
29 29
     public function create()
30 30
     {
31
-        DB::transaction(fn () => $this->findOrCreate()
31
+        DB::transaction(fn() => $this->findOrCreate()
32 32
             ->generate()
33 33
             ->attach());
34 34
 
Please login to merge, or discard this patch.
app/Http/Response/enso/core/GuestState.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,8 +54,8 @@
 block discarded – undo
54 54
         $authRoutes = new Collection(['login', 'password.email', 'password.reset']);
55 55
 
56 56
         return (new Collection(Route::getRoutes()->getRoutesByName()))
57
-            ->filter(fn ($route, $name) => $authRoutes->contains($name))
58
-            ->map(fn ($route) => (new Collection($route))
57
+            ->filter(fn($route, $name) => $authRoutes->contains($name))
58
+            ->map(fn($route) => (new Collection($route))
59 59
                 ->only(['uri', 'methods'])
60 60
                 ->put('domain', $route->domain()));
61 61
     }
Please login to merge, or discard this patch.
app/Http/Response/enso/core/AppState.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -68,8 +68,8 @@  discard block
 block discarded – undo
68 68
     protected function i18n(): Collection
69 69
     {
70 70
         return $this->languages
71
-            ->reject(fn ($language) => $language->name === 'en')
72
-            ->mapWithKeys(fn ($language) => [
71
+            ->reject(fn($language) => $language->name === 'en')
72
+            ->mapWithKeys(fn($language) => [
73 73
                 $language->name => $this->lang($language),
74 74
             ]);
75 75
     }
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
     protected function rtl(): Collection
85 85
     {
86 86
         return $this->languages
87
-            ->filter(fn ($lang) => $lang->is_rtl)->pluck('name');
87
+            ->filter(fn($lang) => $lang->is_rtl)->pluck('name');
88 88
     }
89 89
 
90 90
     protected function meta(): array
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
     protected function routes(): Collection
107 107
     {
108 108
         return $this->role->permissions
109
-            ->mapWithKeys(fn ($permission) => [
109
+            ->mapWithKeys(fn($permission) => [
110 110
                 $permission->name => $this->route($permission),
111 111
             ]);
112 112
     }
Please login to merge, or discard this patch.
app/Models/enso/core/UserGroup.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,8 +52,8 @@
 block discarded – undo
52 52
     public function scopeVisible($query)
53 53
     {
54 54
         return $query->when(
55
-            ! Auth::user()->belongsToAdminGroup(),
56
-            fn ($query) => $query->whereId(Auth::user()->group_id)
55
+            !Auth::user()->belongsToAdminGroup(),
56
+            fn($query) => $query->whereId(Auth::user()->group_id)
57 57
         );
58 58
     }
59 59
 }
Please login to merge, or discard this patch.
app/Models/enso/Avatars/Avatar.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
 
61 61
     public function store(UploadedFile $file)
62 62
     {
63
-        return DB::transaction(function () use ($file) {
63
+        return DB::transaction(function() use ($file) {
64 64
             $this->delete();
65 65
             $avatar = self::create(['user_id' => Auth::user()->id]);
66 66
 
Please login to merge, or discard this patch.