@@ -40,7 +40,7 @@ |
||
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(); |
@@ -395,7 +395,7 @@ |
||
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() |
@@ -88,7 +88,7 @@ discard block |
||
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 |
||
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 |
||
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 | } |
@@ -120,7 +120,7 @@ |
||
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), |
@@ -129,7 +129,7 @@ |
||
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); |
@@ -23,6 +23,6 @@ |
||
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 | } |
@@ -21,7 +21,7 @@ |
||
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) |
@@ -14,7 +14,7 @@ |
||
14 | 14 | public function __invoke(DocumentParsedEvent $e): void |
15 | 15 | { |
16 | 16 | foreach ($e->getDocument()->iterator() as $link) { |
17 | - if (! ($link instanceof Link)) { |
|
17 | + if (!($link instanceof Link)) { |
|
18 | 18 | continue; |
19 | 19 | } |
20 | 20 |
@@ -22,7 +22,7 @@ |
||
22 | 22 | $internalHosts = $this->config->get('internal_link/internal_hosts'); |
23 | 23 | |
24 | 24 | foreach ($e->getDocument()->iterator() as $link) { |
25 | - if (! ($link instanceof Link)) { |
|
25 | + if (!($link instanceof Link)) { |
|
26 | 26 | continue; |
27 | 27 | } |
28 | 28 |