@@ -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 |