| @@ -68,14 +68,14 @@ discard block | ||
| 68 | 68 | * manner, descendant <md:EntitiesDescriptor> and <md:EntityDescriptor> elements MUST | 
| 69 | 69 | * NOT contain a <mdrpi:RegistrationInfo> element in their <md:Extensions> element. | 
| 70 | 70 | */ | 
| 71 | -            $toplevel_regInfo = array_values(array_filter($extensions->getList(), function ($ext) { | |
| 71 | +            $toplevel_regInfo = array_values(array_filter($extensions->getList(), function($ext) { | |
| 72 | 72 | return $ext instanceof RegistrationInfo; | 
| 73 | 73 | })); | 
| 74 | 74 | |
| 75 | 75 | /** | 
| 76 | 76 | * The <mdrpi:PublicationInfo> element SHOULD only be used on the root element of a metadata document. | 
| 77 | 77 | */ | 
| 78 | -            $toplevel_pubInfo = array_values(array_filter($extensions->getList(), function ($ext) { | |
| 78 | +            $toplevel_pubInfo = array_values(array_filter($extensions->getList(), function($ext) { | |
| 79 | 79 | return $ext instanceof PublicationInfo; | 
| 80 | 80 | })); | 
| 81 | 81 | |
| @@ -87,7 +87,7 @@ discard block | ||
| 87 | 87 | * When used in this manner, descendant <md:EntitiesDescriptor> and <md:EntityDescriptor> | 
| 88 | 88 | * elements MUST NOT contain a <mdrpi:PublicationPath> element in their <md:Extensions> element. | 
| 89 | 89 | */ | 
| 90 | -            $toplevel_pubPath = array_values(array_filter($extensions->getList(), function ($ext) { | |
| 90 | +            $toplevel_pubPath = array_values(array_filter($extensions->getList(), function($ext) { | |
| 91 | 91 | return $ext instanceof PublicationPath; | 
| 92 | 92 | })); | 
| 93 | 93 | |
| @@ -98,7 +98,7 @@ discard block | ||
| 98 | 98 | } | 
| 99 | 99 | |
| 100 | 100 |                  if (count($toplevel_regInfo) > 0) { | 
| 101 | -                    $nested_regInfo = array_values(array_filter($nestedExtensions, function ($ext) { | |
| 101 | +                    $nested_regInfo = array_values(array_filter($nestedExtensions, function($ext) { | |
| 102 | 102 | return $ext instanceof RegistrationInfo; | 
| 103 | 103 | })); | 
| 104 | 104 | |
| @@ -111,7 +111,7 @@ discard block | ||
| 111 | 111 | } | 
| 112 | 112 | |
| 113 | 113 |                  if (count($toplevel_pubInfo) > 0) { | 
| 114 | -                    $nested_pubInfo = array_values(array_filter($nestedExtensions, function ($ext) { | |
| 114 | +                    $nested_pubInfo = array_values(array_filter($nestedExtensions, function($ext) { | |
| 115 | 115 | return $ext instanceof PublicationInfo; | 
| 116 | 116 | })); | 
| 117 | 117 | |
| @@ -124,7 +124,7 @@ discard block | ||
| 124 | 124 | } | 
| 125 | 125 | |
| 126 | 126 |                  if (count($toplevel_pubPath) > 0) { | 
| 127 | -                    $nested_pubPath = array_values(array_filter($nestedExtensions, function ($ext) { | |
| 127 | +                    $nested_pubPath = array_values(array_filter($nestedExtensions, function($ext) { | |
| 128 | 128 | return $ext instanceof PublicationPath; | 
| 129 | 129 | })); | 
| 130 | 130 | |
| @@ -145,7 +145,7 @@ discard block | ||
| 145 | 145 | /** | 
| 146 | 146 | * Get all extensions from all nested entity/entities descriptors | 
| 147 | 147 | */ | 
| 148 | - private function getRecursiveExtensions(EntityDescriptor|EntitiesDescriptor $descriptor): array | |
| 148 | + private function getRecursiveExtensions(EntityDescriptor | EntitiesDescriptor $descriptor): array | |
| 149 | 149 |      { | 
| 150 | 150 | $extensions = []; | 
| 151 | 151 |          if ($descriptor->getExtensions() !== null) { | 
| @@ -100,7 +100,7 @@ | ||
| 100 | 100 | Assert::maxCount( | 
| 101 | 101 | array_filter( | 
| 102 | 102 | $attributeConsumingService, | 
| 103 | -                function (AttributeConsumingService $acs) { | |
| 103 | +                function(AttributeConsumingService $acs) { | |
| 104 | 104 | return $acs->getIsDefault()?->toBoolean() === true; | 
| 105 | 105 | }, | 
| 106 | 106 | ), | 
| @@ -45,7 +45,7 @@ discard block | ||
| 45 | 45 | /** | 
| 46 | 46 | * MDUI 2.1: this element MUST NOT appear more than once within a given <md:Extensions> element. | 
| 47 | 47 | */ | 
| 48 | -            $uiInfo = array_values(array_filter($exts, function ($ext) { | |
| 48 | +            $uiInfo = array_values(array_filter($exts, function($ext) { | |
| 49 | 49 | return $ext instanceof UIInfo; | 
| 50 | 50 | })); | 
| 51 | 51 | Assert::maxCount($uiInfo, 1, ProtocolViolationException::class); | 
| @@ -53,7 +53,7 @@ discard block | ||
| 53 | 53 | /** | 
| 54 | 54 | * MDUI 2.2: this element MUST NOT appear more than once within a given <md:Extensions> element. | 
| 55 | 55 | */ | 
| 56 | -            $discoHints = array_values(array_filter($exts, function ($ext) { | |
| 56 | +            $discoHints = array_values(array_filter($exts, function($ext) { | |
| 57 | 57 | return $ext instanceof DiscoHints; | 
| 58 | 58 | })); | 
| 59 | 59 | Assert::maxCount($discoHints, 1, ProtocolViolationException::class); | 
| @@ -61,7 +61,7 @@ discard block | ||
| 61 | 61 | /** | 
| 62 | 62 | * MDRPI 2.1: this element MUST NOT appear more than once within a given <md:Extensions> element. | 
| 63 | 63 | */ | 
| 64 | -            $regInfo = array_values(array_filter($exts, function ($ext) { | |
| 64 | +            $regInfo = array_values(array_filter($exts, function($ext) { | |
| 65 | 65 | return $ext instanceof RegistrationInfo; | 
| 66 | 66 | })); | 
| 67 | 67 | Assert::maxCount($regInfo, 1, ProtocolViolationException::class); | 
| @@ -69,7 +69,7 @@ discard block | ||
| 69 | 69 | /** | 
| 70 | 70 | * MDRPI 2.2: this element MUST NOT appear more than once within a given <md:Extensions> element. | 
| 71 | 71 | */ | 
| 72 | -            $pubInfo = array_values(array_filter($exts, function ($ext) { | |
| 72 | +            $pubInfo = array_values(array_filter($exts, function($ext) { | |
| 73 | 73 | return $ext instanceof PublicationInfo; | 
| 74 | 74 | })); | 
| 75 | 75 | Assert::maxCount($regInfo, 1, ProtocolViolationException::class); | 
| @@ -78,7 +78,7 @@ discard block | ||
| 78 | 78 | * MDRPI 2.3: The <mdrpi:PublicationPath> element MUST NOT appear more than once within the | 
| 79 | 79 | * <md:Extensions> element of a given <md:EntitiesDescriptor> or <md:EntityDescriptor> element. | 
| 80 | 80 | */ | 
| 81 | -            $pubPath = array_values(array_filter($exts, function ($ext) { | |
| 81 | +            $pubPath = array_values(array_filter($exts, function($ext) { | |
| 82 | 82 | return $ext instanceof PublicationPath; | 
| 83 | 83 | })); | 
| 84 | 84 | Assert::maxCount($pubPath, 1, ProtocolViolationException::class); | 
| @@ -37,7 +37,7 @@ | ||
| 37 | 37 | * @param \SimpleSAML\SAML2\Type\SAMLStringValue|null $SPNameQualifier | 
| 38 | 38 | */ | 
| 39 | 39 | protected function __construct( | 
| 40 | - SAMLStringValue|SAMLAnyURIValue $value, | |
| 40 | + SAMLStringValue | SAMLAnyURIValue $value, | |
| 41 | 41 | protected ?SAMLStringValue $NameQualifier = null, | 
| 42 | 42 | protected ?SAMLStringValue $SPNameQualifier = null, | 
| 43 | 43 | protected ?SAMLAnyURIValue $Format = null, | 
| @@ -32,11 +32,11 @@ | ||
| 32 | 32 |      { | 
| 33 | 33 | $recipient = $subjectConfirmation->getSubjectConfirmationData()?->getRecipient(); | 
| 34 | 34 | |
| 35 | -        if ($recipient !== null && !$recipient->equals((string)$this->destination)) { | |
| 35 | +        if ($recipient !== null && !$recipient->equals((string) $this->destination)) { | |
| 36 | 36 | $result->addError(sprintf( | 
| 37 | 37 |                  'Recipient in SubjectConfirmationData ("%s") does not match the current destination ("%s")', | 
| 38 | 38 | $recipient, | 
| 39 | - (string)$this->destination, | |
| 39 | + (string) $this->destination, | |
| 40 | 40 | )); | 
| 41 | 41 | } | 
| 42 | 42 | } | 
| @@ -53,7 +53,7 @@ | ||
| 53 | 53 | * | 
| 54 | 54 | * @return \SimpleSAML\XMLSchema\Type\UnsignedByteValue|null | 
| 55 | 55 | */ | 
| 56 | - public function getVerifyDepth(): UnsignedByteValue|null | |
| 56 | + public function getVerifyDepth(): UnsignedByteValue | null | |
| 57 | 57 |      { | 
| 58 | 58 | return $this->VerifyDepth; | 
| 59 | 59 | } |