@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | public function isSpecialArticle($specialArticleName = ''): bool |
43 | 43 | { |
44 | 44 | if ($specialArticleName === '') { |
45 | - return ! empty($this->technical_name); |
|
45 | + return !empty($this->technical_name); |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | return $this->technical_name === $specialArticleName; |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | |
61 | 61 | public function getFirstChildAttribute(): Article |
62 | 62 | { |
63 | - if (! $this->hasChildren()) { |
|
63 | + if (!$this->hasChildren()) { |
|
64 | 64 | throw new Exception("Article `{$this->id}` doesn't have any children."); |
65 | 65 | } |
66 | 66 | |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | |
82 | 82 | public function hasParent(): bool |
83 | 83 | { |
84 | - return ! is_null($this->parent); |
|
84 | + return !is_null($this->parent); |
|
85 | 85 | } |
86 | 86 | |
87 | 87 | public function getUrlAttribute(): string |