@@ -304,7 +304,7 @@ discard block |
||
| 304 | 304 | */ |
| 305 | 305 | final public function success(string $message, bool $badge = true, string $label = 'SUCCESS'): self |
| 306 | 306 | { |
| 307 | - if (! $badge) { |
|
| 307 | + if (!$badge) { |
|
| 308 | 308 | $this->writer->okBold($label); |
| 309 | 309 | } else { |
| 310 | 310 | $this->writer->boldWhiteBgGreen(" {$label} "); |
@@ -318,7 +318,7 @@ discard block |
||
| 318 | 318 | */ |
| 319 | 319 | final public function warning(string $message, bool $badge = true, string $label = 'WARNING'): self |
| 320 | 320 | { |
| 321 | - if (! $badge) { |
|
| 321 | + if (!$badge) { |
|
| 322 | 322 | $this->writer->warnBold($label); |
| 323 | 323 | } else { |
| 324 | 324 | $this->writer->boldWhiteBgYellow(" {$label} "); |
@@ -332,7 +332,7 @@ discard block |
||
| 332 | 332 | */ |
| 333 | 333 | final public function info(string $message, bool $badge = true, string $label = 'INFO'): self |
| 334 | 334 | { |
| 335 | - if (! $badge) { |
|
| 335 | + if (!$badge) { |
|
| 336 | 336 | $this->writer->infoBold($label); |
| 337 | 337 | } else { |
| 338 | 338 | $this->writer->boldWhiteBgCyan(" {$label} "); |
@@ -346,7 +346,7 @@ discard block |
||
| 346 | 346 | */ |
| 347 | 347 | final public function error(string $message, bool $badge = true, string $label = 'ERROR'): self |
| 348 | 348 | { |
| 349 | - if (! $badge) { |
|
| 349 | + if (!$badge) { |
|
| 350 | 350 | $this->writer->errorBold($label); |
| 351 | 351 | } else { |
| 352 | 352 | $this->writer->boldWhiteBgRed(" {$label} "); |
@@ -449,7 +449,7 @@ discard block |
||
| 449 | 449 | */ |
| 450 | 450 | final public function json($data): self |
| 451 | 451 | { |
| 452 | - $this->write(json_encode($data, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES), true); |
|
| 452 | + $this->write(json_encode($data, JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES), true); |
|
| 453 | 453 | |
| 454 | 454 | return $this; |
| 455 | 455 | } |
@@ -225,9 +225,9 @@ discard block |
||
| 225 | 225 | */ |
| 226 | 226 | final public function argument(string $name, mixed $default = null): mixed |
| 227 | 227 | { |
| 228 | - if (isset($this->_arguments[$name])) { |
|
| 229 | - return $this->_arguments[$name]; |
|
| 230 | - } |
|
| 228 | + if (isset($this->_arguments[$name])) { |
|
| 229 | + return $this->_arguments[$name]; |
|
| 230 | + } |
|
| 231 | 231 | |
| 232 | 232 | return $this->_arguments[Text::camel($name)] ?? $default; |
| 233 | 233 | } |
@@ -245,9 +245,9 @@ discard block |
||
| 245 | 245 | */ |
| 246 | 246 | final public function option(string $name, mixed $default = null): mixed |
| 247 | 247 | { |
| 248 | - if (isset($this->_options[$name])) { |
|
| 249 | - return $this->_options[$name]; |
|
| 250 | - } |
|
| 248 | + if (isset($this->_options[$name])) { |
|
| 249 | + return $this->_options[$name]; |
|
| 250 | + } |
|
| 251 | 251 | |
| 252 | 252 | return $this->_options[Text::camel($name)] ?? $default; |
| 253 | 253 | } |
@@ -267,9 +267,9 @@ discard block |
||
| 267 | 267 | { |
| 268 | 268 | $params = array_merge($this->_arguments, $this->_options); |
| 269 | 269 | |
| 270 | - if (isset($params[$name])) { |
|
| 271 | - return $params[$name]; |
|
| 272 | - } |
|
| 270 | + if (isset($params[$name])) { |
|
| 271 | + return $params[$name]; |
|
| 272 | + } |
|
| 273 | 273 | |
| 274 | 274 | return $params[Text::camel($name)] ?? $default; |
| 275 | 275 | } |
@@ -156,7 +156,7 @@ |
||
| 156 | 156 | */ |
| 157 | 157 | public function ghost(array|string $key, null|array|Schema $structure = null): static |
| 158 | 158 | { |
| 159 | - $schema = is_array($structure) ? Expect::mixed($structure) : $structure; |
|
| 159 | + $schema = is_array($structure) ? Expect::mixed($structure) : $structure; |
|
| 160 | 160 | |
| 161 | 161 | $this->load($key, null, $schema, true); |
| 162 | 162 | |