@@ -75,14 +75,14 @@ discard block |
||
| 75 | 75 | * manner, descendant <md:EntitiesDescriptor> and <md:EntityDescriptor> elements MUST |
| 76 | 76 | * NOT contain a <mdrpi:RegistrationInfo> element in their <md:Extensions> element. |
| 77 | 77 | */ |
| 78 | - $toplevel_regInfo = array_values(array_filter($extensions->getElements(), function ($ext) { |
|
| 78 | + $toplevel_regInfo = array_values(array_filter($extensions->getElements(), function($ext) { |
|
| 79 | 79 | return $ext instanceof RegistrationInfo; |
| 80 | 80 | })); |
| 81 | 81 | |
| 82 | 82 | /** |
| 83 | 83 | * The <mdrpi:PublicationInfo> element SHOULD only be used on the root element of a metadata document. |
| 84 | 84 | */ |
| 85 | - $toplevel_pubInfo = array_values(array_filter($extensions->getElements(), function ($ext) { |
|
| 85 | + $toplevel_pubInfo = array_values(array_filter($extensions->getElements(), function($ext) { |
|
| 86 | 86 | return $ext instanceof PublicationInfo; |
| 87 | 87 | })); |
| 88 | 88 | |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | * When used in this manner, descendant <md:EntitiesDescriptor> and <md:EntityDescriptor> |
| 95 | 95 | * elements MUST NOT contain a <mdrpi:PublicationPath> element in their <md:Extensions> element. |
| 96 | 96 | */ |
| 97 | - $toplevel_pubPath = array_values(array_filter($extensions->getElements(), function ($ext) { |
|
| 97 | + $toplevel_pubPath = array_values(array_filter($extensions->getElements(), function($ext) { |
|
| 98 | 98 | return $ext instanceof PublicationPath; |
| 99 | 99 | })); |
| 100 | 100 | |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | } |
| 106 | 106 | |
| 107 | 107 | if (count($toplevel_regInfo) > 0) { |
| 108 | - $nested_regInfo = array_values(array_filter($nestedExtensions, function ($ext) { |
|
| 108 | + $nested_regInfo = array_values(array_filter($nestedExtensions, function($ext) { |
|
| 109 | 109 | return $ext instanceof RegistrationInfo; |
| 110 | 110 | })); |
| 111 | 111 | |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | } |
| 119 | 119 | |
| 120 | 120 | if (count($toplevel_pubInfo) > 0) { |
| 121 | - $nested_pubInfo = array_values(array_filter($nestedExtensions, function ($ext) { |
|
| 121 | + $nested_pubInfo = array_values(array_filter($nestedExtensions, function($ext) { |
|
| 122 | 122 | return $ext instanceof PublicationInfo; |
| 123 | 123 | })); |
| 124 | 124 | |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | } |
| 132 | 132 | |
| 133 | 133 | if (count($toplevel_pubPath) > 0) { |
| 134 | - $nested_pubPath = array_values(array_filter($nestedExtensions, function ($ext) { |
|
| 134 | + $nested_pubPath = array_values(array_filter($nestedExtensions, function($ext) { |
|
| 135 | 135 | return $ext instanceof PublicationPath; |
| 136 | 136 | })); |
| 137 | 137 | |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | /** |
| 153 | 153 | * Get all extensions from all nested entity/entities descriptors |
| 154 | 154 | */ |
| 155 | - private function getRecursiveExtensions(EntityDescriptor|EntitiesDescriptor $descriptor): array |
|
| 155 | + private function getRecursiveExtensions(EntityDescriptor | EntitiesDescriptor $descriptor): array |
|
| 156 | 156 | { |
| 157 | 157 | $extensions = []; |
| 158 | 158 | if ($descriptor->getExtensions() !== null) { |