@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | |
42 | 42 | public function isSpecialArticle(): bool |
43 | 43 | { |
44 | - return ! empty($this->technical_name); |
|
44 | + return !empty($this->technical_name); |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | public function children(): HasMany |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | |
57 | 57 | public function getFirstChildAttribute(): Article |
58 | 58 | { |
59 | - if (! $this->hasChildren()) { |
|
59 | + if (!$this->hasChildren()) { |
|
60 | 60 | throw new Exception("Article `{$this->id}` doesn't have any children."); |
61 | 61 | } |
62 | 62 | |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | |
78 | 78 | public function hasParent(): bool |
79 | 79 | { |
80 | - return ! is_null($this->parent); |
|
80 | + return !is_null($this->parent); |
|
81 | 81 | } |
82 | 82 | |
83 | 83 | public function getFullUrlAttribute(): string |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | { |
33 | 33 | return Cache::rememberForever( |
34 | 34 | "article.findByTechnicalName.{$technicalName}", |
35 | - function () use ($technicalName) { |
|
35 | + function() use ($technicalName) { |
|
36 | 36 | return Article::where('technical_name', $technicalName)->firstOrFail(); |
37 | 37 | } |
38 | 38 | ); |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | { |
43 | 43 | return Cache::rememberForever( |
44 | 44 | "article.getWithTechnicalNameLike.{$technicalName}", |
45 | - function () use ($technicalName) { |
|
45 | + function() use ($technicalName) { |
|
46 | 46 | return Article::where('technical_name', 'like', "{$technicalName}.%") |
47 | 47 | ->orderBy('order_column') |
48 | 48 | ->get(); |