@@ -58,7 +58,7 @@ |
||
58 | 58 | { |
59 | 59 | $user = $this->frontUserRepository->find($id); |
60 | 60 | |
61 | - if (! $user) { |
|
61 | + if (!$user) { |
|
62 | 62 | abort(404); |
63 | 63 | } |
64 | 64 |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | { |
10 | 10 | public function doesntEqual(Enum $enum): bool |
11 | 11 | { |
12 | - return ! $this->equals($enum); |
|
12 | + return !$this->equals($enum); |
|
13 | 13 | } |
14 | 14 | |
15 | 15 | public static function toCollection(): Collection |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | |
20 | 20 | public static function allAsRegex(): string |
21 | 21 | { |
22 | - return collect(static::values())->map(function ($value) { |
|
22 | + return collect(static::values())->map(function($value) { |
|
23 | 23 | return "({$value})"; |
24 | 24 | })->implode('|'); |
25 | 25 | } |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | { |
38 | 38 | return Cache::rememberForever( |
39 | 39 | "article.findByTechnicalName.{$technicalName}", |
40 | - function () use ($technicalName) : Article { |
|
40 | + function() use ($technicalName) : Article { |
|
41 | 41 | $article = static::where('technical_name', $technicalName)->first(); |
42 | 42 | |
43 | 43 | if ($article === null) { |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | { |
54 | 54 | return Cache::rememberForever( |
55 | 55 | "article.getWithTechnicalNameLike.{$technicalName}", |
56 | - function () use ($technicalName) : Collection { |
|
56 | + function() use ($technicalName) : Collection { |
|
57 | 57 | return static::where('technical_name', 'like', "{$technicalName}.%") |
58 | 58 | ->orderBy('order_column') |
59 | 59 | ->get(); |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | |
64 | 64 | public function isSpecialArticle(): bool |
65 | 65 | { |
66 | - return ! empty($this->technical_name); |
|
66 | + return !empty($this->technical_name); |
|
67 | 67 | } |
68 | 68 | |
69 | 69 | public function children(): HasMany |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | |
84 | 84 | public function hasParentArticle(): bool |
85 | 85 | { |
86 | - return ! is_null($this->parentArticle); |
|
86 | + return !is_null($this->parentArticle); |
|
87 | 87 | } |
88 | 88 | |
89 | 89 | public function getFullUrlAttribute(): string |