@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | */ |
| 128 | 128 | public function getInnerXml() |
| 129 | 129 | { |
| 130 | - return implode('', array_map(function ($element) { |
|
| 130 | + return implode('', array_map(function($element) { |
|
| 131 | 131 | if (is_string($element)) { |
| 132 | 132 | return htmlspecialchars($element); |
| 133 | 133 | } elseif ($element instanceof XmlElement) { |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | $attributes = $this->attributes(); |
| 155 | 155 | |
| 156 | 156 | $result = "<{$this->name}"; |
| 157 | - $result .= ' ' . implode(' ', array_map(function ($key, $value) { |
|
| 157 | + $result .= ' ' . implode(' ', array_map(function($key, $value) { |
|
| 158 | 158 | return $key . '="' . htmlspecialchars($value, ENT_QUOTES) . '"'; |
| 159 | 159 | }, array_keys($attributes), array_values($attributes))); |
| 160 | 160 | |
@@ -414,7 +414,7 @@ discard block |
||
| 414 | 414 | private function attributes(): array |
| 415 | 415 | { |
| 416 | 416 | $namespaces = $this->getNamespaces(false); |
| 417 | - $namespaces = array_map(function ($prefix, $uri) { |
|
| 417 | + $namespaces = array_map(function($prefix, $uri) { |
|
| 418 | 418 | return [$prefix ? "xmlns:{$prefix}" : 'xmlns', $uri]; |
| 419 | 419 | }, array_values($namespaces), array_keys($namespaces)); |
| 420 | 420 | |