Completed
Push — master ( 518819...91b4e9 )
by Adam
37s
created
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/Job/PaymentController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
         Stripe::setApiKey(config('services.stripe.secret'));
130 130
 
131 131
         $coupon = $this->coupon->findBy('code', $request->input('coupon'));
132
-        $payment->coupon_id = $coupon?->id;
132
+        $payment->coupon_id = $coupon ? ->id;
133 133
 
134 134
         $calculator = CalculatorFactory::payment($payment);
135 135
         $calculator->setCoupon($coupon);
Please login to merge, or discard this patch.
app/Services/Invoice/CalculatorFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,6 +23,6 @@
 block discarded – undo
23 23
     {
24 24
         $firm = $payment->job->firm;
25 25
 
26
-        return (new VatRateCalculator())->vatRate($firm?->country, $firm->vat_id);
26
+        return (new VatRateCalculator())->vatRate($firm ? ->country, $firm->vat_id);
27 27
     }
28 28
 }
Please login to merge, or discard this patch.
app/Http/Controllers/User/RelationsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 
22 22
     public function showRelations()
23 23
     {
24
-        $users = $this->auth->relations()->with(['relatedUser' => fn (BelongsTo $builder) => $builder->withTrashed()])->get()->pluck('relatedUser');
24
+        $users = $this->auth->relations()->with(['relatedUser' => fn(BelongsTo $builder) => $builder->withTrashed()])->get()->pluck('relatedUser');
25 25
 
26 26
         return $this->view('user.relations', [
27 27
             'users' => UserResource::collection($users)
Please login to merge, or discard this patch.
app/Services/Parser/Extensions/YoutubeLinkProcessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
             || empty($components['path'])
46 46
                 // "/" path are not allowed
47 47
                 || trim($components['path']) === '/'
48
-                    || $link->firstChild()?->getLiteral() !== $link->getUrl()
48
+                    || $link->firstChild() ? ->getLiteral() !== $link->getUrl()
49 49
             ) {
50 50
             return false;
51 51
         }
Please login to merge, or discard this patch.