@@ -44,7 +44,7 @@ |
||
| 44 | 44 | |
| 45 | 45 | protected function escape(string $string): string |
| 46 | 46 | { |
| 47 | - return htmlspecialchars($string, ENT_XML1 | ENT_COMPAT, 'UTF-8'); |
|
| 47 | + return htmlspecialchars($string, ENT_XML1|ENT_COMPAT, 'UTF-8'); |
|
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | protected function addChild(SimpleXMLElement $element, string $name, string $value): SimpleXMLElement |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | // Reject any metadata from the global metadata bag that is already present in the page metadata bag. |
| 50 | 50 | |
| 51 | 51 | foreach (['links', 'metadata', 'properties', 'generics'] as $type) { |
| 52 | - $global->$type = array_filter($global->$type, fn (Element $element): bool => ! in_array($element->uniqueKey(), |
|
| 52 | + $global->$type = array_filter($global->$type, fn (Element $element): bool => !in_array($element->uniqueKey(), |
|
| 53 | 53 | array_map(fn (Element $element): string => $element->uniqueKey(), $page->metadata->$type) |
| 54 | 54 | )); |
| 55 | 55 | } |