@@ -15,7 +15,7 @@ |
||
| 15 | 15 | #[\Override] |
| 16 | 16 | public function isPossible(): bool |
| 17 | 17 | { |
| 18 | - if (str_starts_with($this->value, '*bool')){ |
|
| 18 | + if (str_starts_with($this->value, '*bool')) { |
|
| 19 | 19 | $this->value = preg_replace('/^(\*bool\s*)/', '', $this->value) ?? ''; |
| 20 | 20 | return true; |
| 21 | 21 | } |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | #[\Override] |
| 16 | 16 | public function isPossible(): bool |
| 17 | 17 | { |
| 18 | - if (str_starts_with($this->value, '*int8')){ |
|
| 18 | + if (str_starts_with($this->value, '*int8')) { |
|
| 19 | 19 | $this->value = preg_replace('/^(\*int8\s*)/', '', $this->value) ?? ''; |
| 20 | 20 | return true; |
| 21 | 21 | } |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | #[\Override] |
| 26 | - public function getCastedValue(): int|float |
|
| 26 | + public function getCastedValue(): int | float |
|
| 27 | 27 | { |
| 28 | 28 | return octdec($this->value); |
| 29 | 29 | } |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | #[\Override] |
| 16 | 16 | public function isPossible(): bool |
| 17 | 17 | { |
| 18 | - if (str_starts_with($this->value, '*int16')){ |
|
| 18 | + if (str_starts_with($this->value, '*int16')) { |
|
| 19 | 19 | $this->value = preg_replace('/^(\*int16\s*)/', '', $this->value) ?? ''; |
| 20 | 20 | return true; |
| 21 | 21 | } |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | #[\Override] |
| 26 | - public function getCastedValue(): int|float |
|
| 26 | + public function getCastedValue(): int | float |
|
| 27 | 27 | { |
| 28 | 28 | return hexdec($this->value); |
| 29 | 29 | } |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | #[\Override] |
| 17 | 17 | public function isPossible(): bool |
| 18 | 18 | { |
| 19 | - if (str_starts_with($this->value, '*true')){ |
|
| 19 | + if (str_starts_with($this->value, '*true')) { |
|
| 20 | 20 | return true; |
| 21 | 21 | } |
| 22 | 22 | return strtolower($this->value) === 'true'; |
@@ -16,14 +16,14 @@ |
||
| 16 | 16 | #[\Override] |
| 17 | 17 | public function isPossible(): bool |
| 18 | 18 | { |
| 19 | - if (str_starts_with($this->value, '*null')){ |
|
| 19 | + if (str_starts_with($this->value, '*null')) { |
|
| 20 | 20 | return true; |
| 21 | 21 | } |
| 22 | 22 | return false; |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | #[\Override] |
| 26 | - public function getCastedValue(): string|null |
|
| 26 | + public function getCastedValue(): string | null |
|
| 27 | 27 | { |
| 28 | 28 | return null; |
| 29 | 29 | } |