@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | { |
| 29 | 29 | /** @var string The key name for the node value */ |
| 30 | 30 | private string $val = '#'; |
| 31 | - private string|null $root; |
|
| 31 | + private string | null $root; |
|
| 32 | 32 | |
| 33 | 33 | public function __construct(?string $root, string $nodeKey = '#') |
| 34 | 34 | { |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | * |
| 56 | 56 | * @return string|null XML |
| 57 | 57 | */ |
| 58 | - public function serialize(mixed $data): string|null |
|
| 58 | + public function serialize(mixed $data): string | null |
|
| 59 | 59 | { |
| 60 | 60 | $document = new DOMDocument('1.0', 'UTF-8'); |
| 61 | 61 | $document->formatOutput = false; |
@@ -273,7 +273,7 @@ discard block |
||
| 273 | 273 | if (!(isset($value['@type']) && \str_starts_with($value['@type'] ?? '', 'xsd:'))) { |
| 274 | 274 | return $value; |
| 275 | 275 | } |
| 276 | - $value[$this->val] = match ($value['@type']) { |
|
| 276 | + $value[$this->val] = match($value['@type']) { |
|
| 277 | 277 | 'xsd:integer' => (int)$value[$this->val], |
| 278 | 278 | 'xsd:boolean' => \filter_var($value[$this->val], FILTER_VALIDATE_BOOL), |
| 279 | 279 | 'xsd:float' => (float)$value[$this->val], |