@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | protected function createXML(): SimpleXMLElement |
121 | 121 | { |
122 | 122 | $np = $this->namespacesPaths->allNamespaces(); |
123 | - return new SimpleXMLElement('<?xml version="1.0" encoding="' . $this->sanitizeEncoding->getEncoding() . '"?><root ' . \implode(' ', \array_map(function ($k, $v) { |
|
123 | + return new SimpleXMLElement('<?xml version="1.0" encoding="' . $this->sanitizeEncoding->getEncoding() . '"?><root ' . \implode(' ', \array_map(function($k, $v) { |
|
124 | 124 | return 'xmlns:' . $k . '="' . $v . '"'; |
125 | 125 | }, \array_keys($np), \array_values($np))) . '></root>'); |
126 | 126 | } |
@@ -267,7 +267,7 @@ discard block |
||
267 | 267 | return \htmlspecialchars( |
268 | 268 | \array_reduce( |
269 | 269 | $this->sanitizeEncoding->getListing()->getTransformers(), |
270 | - function (string $value, ValueTransformerInterface $transformer): string { |
|
270 | + function(string $value, ValueTransformerInterface $transformer): string { |
|
271 | 271 | return $transformer->transform($value); |
272 | 272 | }, |
273 | 273 | strval($value), |
@@ -342,7 +342,7 @@ discard block |
||
342 | 342 | protected function getChildNamespacePrefix(string $defaultPrefix): string |
343 | 343 | { |
344 | 344 | if (!empty($this->getImportRoot()) && $this->directionAsResponse) { |
345 | - list($prefix, ) = explode(':', $this->getImportRoot()); |
|
345 | + list($prefix,) = explode(':', $this->getImportRoot()); |
|
346 | 346 | return $prefix; |
347 | 347 | } |
348 | 348 | return $defaultPrefix; |