@@ -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 | |
@@ -399,7 +399,7 @@ discard block |
||
| 399 | 399 | public function find($predicate) |
| 400 | 400 | { |
| 401 | 401 | foreach ($this->_children as $index => $child) { |
| 402 | - if($predicate($child)) { |
|
| 402 | + if ($predicate($child)) { |
|
| 403 | 403 | return $child; |
| 404 | 404 | } |
| 405 | 405 | } |
@@ -424,7 +424,7 @@ discard block |
||
| 424 | 424 | private function attributes(): array |
| 425 | 425 | { |
| 426 | 426 | $namespaces = $this->getNamespaces(false); |
| 427 | - $namespaces = array_map(function ($prefix, $uri) { |
|
| 427 | + $namespaces = array_map(function($prefix, $uri) { |
|
| 428 | 428 | return [$prefix ? "xmlns:{$prefix}" : 'xmlns', $uri]; |
| 429 | 429 | }, array_values($namespaces), array_keys($namespaces)); |
| 430 | 430 | |
@@ -444,7 +444,7 @@ discard block |
||
| 444 | 444 | */ |
| 445 | 445 | protected function _prefix(string $name, string $uri = null): string |
| 446 | 446 | { |
| 447 | - if($uri === null) { |
|
| 447 | + if ($uri === null) { |
|
| 448 | 448 | return $name; |
| 449 | 449 | } |
| 450 | 450 | |