@@ -18,7 +18,7 @@ |
||
| 18 | 18 | private array $paths = []; |
| 19 | 19 | |
| 20 | 20 | #[\Override] |
| 21 | - public function getPath(): string|false |
|
| 21 | + public function getPath(): string | false |
|
| 22 | 22 | { |
| 23 | 23 | $key = key($this->paths); |
| 24 | 24 | if ($key === null) { |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | { |
| 15 | 15 | } |
| 16 | 16 | |
| 17 | - public static function scalarValueToString(string|bool|int|float|null $value): string |
|
| 17 | + public static function scalarValueToString(string | bool | int | float | null $value): string |
|
| 18 | 18 | { |
| 19 | 19 | if (gettype($value) === 'boolean') { |
| 20 | 20 | return $value ? 'true' : 'false'; |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | |
| 31 | 31 | $result = preg_replace_callback( |
| 32 | 32 | '/(\${(?<variable>.+?)(?<default_value>:[-=?][^}]*)?})/', |
| 33 | - function (array $matches): string { |
|
| 33 | + function(array $matches): string { |
|
| 34 | 34 | $env = getenv($matches['variable']) !== false ? getenv($matches['variable']) : null; |
| 35 | 35 | |
| 36 | 36 | /** @var string|bool|int|float|null $val */ |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | #[\Override] |
| 17 | 17 | public function isPossible(): bool |
| 18 | 18 | { |
| 19 | - if (str_starts_with($this->value, '*false')){ |
|
| 19 | + if (str_starts_with($this->value, '*false')) { |
|
| 20 | 20 | return true; |
| 21 | 21 | } |
| 22 | 22 | return strtolower($this->value) === 'false'; |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | #[\Override] |
| 16 | 16 | public function isPossible(): bool |
| 17 | 17 | { |
| 18 | - if (str_starts_with($this->value, '*string')){ |
|
| 18 | + if (str_starts_with($this->value, '*string')) { |
|
| 19 | 19 | $this->value = preg_replace('/^(\*string\s*)/', '', $this->value) ?? ''; |
| 20 | 20 | return true; |
| 21 | 21 | } |
@@ -26,6 +26,6 @@ |
||
| 26 | 26 | #[\Override] |
| 27 | 27 | public function getCastedValue(): int |
| 28 | 28 | { |
| 29 | - return (int) $this->value; |
|
| 29 | + return (int)$this->value; |
|
| 30 | 30 | } |
| 31 | 31 | } |
@@ -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'; |