@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | /** |
213 | 213 | * @return array|string the category display name(s) |
214 | 214 | */ |
215 | - public function getDisplayName(string $lang = null): array|string |
|
215 | + public function getDisplayName(string $lang = null): array | string |
|
216 | 216 | { |
217 | 217 | if (!empty($lang)) { |
218 | 218 | return $this->displayName[$lang] ?? $this->displayName['en'] ?? $this->name; |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | /** |
232 | 232 | * @return array|string the category display description |
233 | 233 | */ |
234 | - public function getDisplayDesc(string $lang = null): array|string |
|
234 | + public function getDisplayDesc(string $lang = null): array | string |
|
235 | 235 | { |
236 | 236 | if (!empty($lang)) { |
237 | 237 | return $this->displayDesc[$lang] ?? $this->displayDesc['en'] ?? ''; |
@@ -152,7 +152,7 @@ |
||
152 | 152 | return $this->createdDate; |
153 | 153 | } |
154 | 154 | |
155 | - public function setCreatedDate(string|DateTimeInterface $createdDate): self |
|
155 | + public function setCreatedDate(string | DateTimeInterface $createdDate): self |
|
156 | 156 | { |
157 | 157 | if ($createdDate instanceof DateTimeInterface) { |
158 | 158 | $this->createdDate = $createdDate; |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | ->info('Index page behavior.') |
53 | 53 | ->addDefaultsIfNotSet() |
54 | 54 | ->validate() |
55 | - ->ifTrue(static function ($v) { |
|
55 | + ->ifTrue(static function($v) { |
|
56 | 56 | $amount = 0; |
57 | 57 | $amount += isset($v['template']) ? 1 : 0; |
58 | 58 | $amount += isset($v['redirect']['crud']) ? 1 : 0; |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | ->info('Index page behavior.') |
122 | 122 | ->addDefaultsIfNotSet() |
123 | 123 | ->validate() |
124 | - ->ifTrue(static function ($v) { |
|
124 | + ->ifTrue(static function($v) { |
|
125 | 125 | $amount = 0; |
126 | 126 | $amount += isset($v['template']) ? 1 : 0; |
127 | 127 | $amount += isset($v['redirect']['crud']) ? 1 : 0; |