Passed
Push — master ( 189726...7c7773 )
by Adam
10:29
created
app/Http/Controllers/Guide/BaseController.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
         parent::__construct();
15 15
 
16
-        TagResource::urlResolver(fn (string $name) => route('guide.tag', [urlencode($name)]));
16
+        TagResource::urlResolver(fn(string $name) => route('guide.tag', [urlencode($name)]));
17 17
 
18 18
         $this->breadcrumb->push('Rekrutacyjne Q&A', route('guide.home'));
19 19
     }
Please login to merge, or discard this patch.
app/Http/Controllers/Guide/HomeController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
     private function load()
35 35
     {
36 36
         if ($this->userId) {
37
-            $userScope = fn ($builder) => $builder->where('user_id', $this->userId);
37
+            $userScope = fn($builder) => $builder->where('user_id', $this->userId);
38 38
 
39 39
             $this->guideRepository->pushCriteria(
40 40
                 new EagerLoading([
Please login to merge, or discard this patch.
app/Http/Controllers/Api/TopicsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 
41 41
     public function __construct(Auth $auth, TopicRepository $repository)
42 42
     {
43
-        TagResource::urlResolver(fn ($name) => route('forum.tag', [urlencode($name)]));
43
+        TagResource::urlResolver(fn($name) => route('forum.tag', [urlencode($name)]));
44 44
 
45 45
         $this->repository = $repository;
46 46
         $this->user = $auth->guard('api')->user();
Please login to merge, or discard this patch.
app/Models/Job.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -395,7 +395,7 @@
 block discarded – undo
395 395
      */
396 396
     public function commentsWithChildren()
397 397
     {
398
-        $userRelation = fn ($builder) => $builder->select(['id', 'name', 'photo', 'deleted_at', 'is_blocked', 'is_online'])->withTrashed();
398
+        $userRelation = fn($builder) => $builder->select(['id', 'name', 'photo', 'deleted_at', 'is_blocked', 'is_online'])->withTrashed();
399 399
 
400 400
         return $this
401 401
             ->comments()
Please login to merge, or discard this patch.
app/Models/Guide.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 
89 89
     public function commentsWithChildren()
90 90
     {
91
-        $userRelation = fn ($builder) => $builder->select(['id', 'name', 'photo', 'deleted_at', 'is_blocked', 'is_online'])->withTrashed();
91
+        $userRelation = fn($builder) => $builder->select(['id', 'name', 'photo', 'deleted_at', 'is_blocked', 'is_online'])->withTrashed();
92 92
 
93 93
         return $this
94 94
             ->comments()
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
             return;
109 109
         }
110 110
 
111
-        $this->load(['voters' => fn ($builder) => $builder->select(['id', 'guide_id', 'user_id'])->where('user_id', $userId)]);
111
+        $this->load(['voters' => fn($builder) => $builder->select(['id', 'guide_id', 'user_id'])->where('user_id', $userId)]);
112 112
     }
113 113
 
114 114
     public function loadUserRoleRelation(?int $userId): void
@@ -117,6 +117,6 @@  discard block
 block discarded – undo
117 117
             return;
118 118
         }
119 119
 
120
-        $this->load(['roles' => fn ($builder) => $builder->select(['id', 'guide_id', 'role'])->where('user_id', $userId)]);
120
+        $this->load(['roles' => fn($builder) => $builder->select(['id', 'guide_id', 'role'])->where('user_id', $userId)]);
121 121
     }
122 122
 }
Please login to merge, or discard this patch.
app/Services/UrlBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@
 block discarded – undo
120 120
 
121 121
     public static function url($model): string
122 122
     {
123
-        return match ($model::class) {
123
+        return match($model::class) {
124 124
             Guide::class        => self::guide($model),
125 125
             Job::class          => self::job($model),
126 126
             Topic::class        => self::topic($model),
Please login to merge, or discard this patch.
app/Http/Controllers/CommentController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
      * @return CommentResource
23 23
      * @throws \Illuminate\Auth\Access\AuthorizationException
24 24
      */
25
-    public function save(CommentRequest $request, Dispatcher $dispatcher, Comment $comment )
25
+    public function save(CommentRequest $request, Dispatcher $dispatcher, Comment $comment)
26 26
     {
27 27
         $this->authorize('update', $comment);
28 28
 
Please login to merge, or discard this patch.