Passed
Push — master ( 72b8ef...877e0f )
by Adam
09:00
created
app/Listeners/FlagSubscriber.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,17 +13,17 @@
 block discarded – undo
13 13
 {
14 14
     public function handleTopicDelete(TopicWasDeleted $event)
15 15
     {
16
-        Flag::whereHas('topics', fn (Builder $query) => $query->withTrashed()->where('id', $event->topic['id']))->delete();
16
+        Flag::whereHas('topics', fn(Builder $query) => $query->withTrashed()->where('id', $event->topic['id']))->delete();
17 17
     }
18 18
 
19 19
     public function handlePostDelete(PostWasDeleted $event)
20 20
     {
21
-        Flag::whereHas('posts', fn (Builder $query) => $query->withTrashed()->where('id', $event->post['id']))->delete();
21
+        Flag::whereHas('posts', fn(Builder $query) => $query->withTrashed()->where('id', $event->post['id']))->delete();
22 22
     }
23 23
 
24 24
     public function handleMicroblogDelete(MicroblogDeleted $event)
25 25
     {
26
-        Flag::whereHas('microblogs', fn (Builder $query) => $query->withTrashed()->where('id', $event->microblog['id']))->delete();
26
+        Flag::whereHas('microblogs', fn(Builder $query) => $query->withTrashed()->where('id', $event->microblog['id']))->delete();
27 27
     }
28 28
 
29 29
     public function subscribe($events)
Please login to merge, or discard this patch.
app/Http/Controllers/User/NotificationsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@
 block discarded – undo
159 159
     private function mark($notifications)
160 160
     {
161 161
         $ids = $notifications
162
-            ->reject(fn (Notification $notification) => $notification->read_at !== null)
162
+            ->reject(fn(Notification $notification) => $notification->read_at !== null)
163 163
             ->pluck('id')
164 164
             ->all();
165 165
 
Please login to merge, or discard this patch.
app/Services/Parser/Parsers/UrlFormatter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
 
32 32
     public function parse(string $text): string
33 33
     {
34
-        return preg::replace_callback(self::REGEXP_URL, fn (array $match) => $this->processLink($match[0]), $text);
34
+        return preg::replace_callback(self::REGEXP_URL, fn(array $match) => $this->processLink($match[0]), $text);
35 35
     }
36 36
 
37 37
     private function processLink(string $url): string
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,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/Requests/Job/PaymentRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
         $codes = $country->pluck('code', 'id');
28 28
 
29 29
         $price = $this->input('price');
30
-        $priceRule = Rule::requiredIf(fn () => $price > 0);
30
+        $priceRule = Rule::requiredIf(fn() => $price > 0);
31 31
 
32 32
         return [
33 33
             'payment_method' => 'required|in:card,p24',
Please login to merge, or discard this patch.
app/Providers/RouteServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -87,10 +87,10 @@  discard block
 block discarded – undo
87 87
         });
88 88
 
89 89
         // we use model instead of repository to avoid putting global criteria to all methods in repository
90
-        $this->router->bind('user_trashed', fn ($id) => User::withTrashed()->findOrFail($id));
90
+        $this->router->bind('user_trashed', fn($id) => User::withTrashed()->findOrFail($id));
91 91
 
92 92
         // we use model instead of repository to avoid putting global criteria to all methods in repository
93
-        $this->router->bind('topic_trashed', fn ($id) => Topic::withTrashed()->findOrFail($id));
93
+        $this->router->bind('topic_trashed', fn($id) => Topic::withTrashed()->findOrFail($id));
94 94
 
95 95
         $this->router->bind('topic', function ($id) {
96 96
             $user = $this->getCurrentRequest()->user();
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
             return Topic::findOrFail($id);
103 103
         });
104 104
 
105
-        $this->router->bind('any_microblog', fn ($id) => Microblog::withoutGlobalScopes()->findOrFail($id));
105
+        $this->router->bind('any_microblog', fn($id) => Microblog::withoutGlobalScopes()->findOrFail($id));
106 106
 
107 107
         parent::boot();
108 108
     }
Please login to merge, or discard this patch.