Passed
Push — master ( fae9c8...c0c67a )
by Adam
08:58
created
app/Http/Resources/MicroblogResource.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
     {
11 11
         parent::__construct($resource);
12 12
 
13
-        TagResource::urlResolver(fn ($name) => route('microblog.tag', [urlencode($name)]));
13
+        TagResource::urlResolver(fn($name) => route('microblog.tag', [urlencode($name)]));
14 14
     }
15 15
 
16 16
     public function toArray($request)
@@ -22,13 +22,13 @@  discard block
 block discarded – undo
22 22
 
23 23
         return array_merge_recursive($result, [
24 24
             'assets'        => $assets,
25
-            'tags'          => $this->whenLoaded('tags', fn () => TagResource::collection($this->resource->tags)),
25
+            'tags'          => $this->whenLoaded('tags', fn() => TagResource::collection($this->resource->tags)),
26 26
             'is_sponsored'  => $this->resource->is_sponsored,
27 27
             'metadata'      => encrypt([Microblog::class => $this->resource->id]),
28 28
             'deleted_at'    => $this->resource->deleted_at,
29 29
 
30 30
             'permissions'   => [
31
-                'moderate'  => $this->when($request->user(), fn () => $request->user()->can('moderate', $this->resource), false)
31
+                'moderate'  => $this->when($request->user(), fn() => $request->user()->can('moderate', $this->resource), false)
32 32
             ]
33 33
         ]);
34 34
     }
Please login to merge, or discard this patch.
app/Http/Controllers/Microblog/VoteController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
 
99 99
     public function voters(Microblog $microblog)
100 100
     {
101
-        $microblog->load(['voters', 'voters.user' => fn ($query) => $query->select('id', 'name')->withTrashed()]);
101
+        $microblog->load(['voters', 'voters.user' => fn($query) => $query->select('id', 'name')->withTrashed()]);
102 102
 
103 103
         return ['id' => $microblog->id, 'parent_id' => $microblog->parent_id, 'users' => $microblog->voters->pluck('user.name')];
104 104
     }
Please login to merge, or discard this patch.