Passed
Push — master ( dac80d...4be4f8 )
by Adam
17:21
created
app/Repositories/Eloquent/PostRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
             return $this
80 80
                 ->model
81 81
                 ->where('topic_id', $topicId)
82
-                ->where('posts.created_at', '<', fn ($builder) => $builder->select('created_at')->from('posts')->where('id', $postId))
82
+                ->where('posts.created_at', '<', fn($builder) => $builder->select('created_at')->from('posts')->where('id', $postId))
83 83
                 ->count();
84 84
         });
85 85
 
Please login to merge, or discard this patch.
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,12 +22,12 @@  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
 
29 29
             'permissions'   => [
30
-                'moderate'  => $this->when($request->user(), fn () => $request->user()->can('moderate', $this->resource), false)
30
+                'moderate'  => $this->when($request->user(), fn() => $request->user()->can('moderate', $this->resource), false)
31 31
             ]
32 32
         ]);
33 33
     }
Please login to merge, or discard this patch.