@@ -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 | } |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | * |
| 40 | 40 | * @throws \Exception |
| 41 | 41 | */ |
| 42 | - public function getOutputToSend(AbstractMessage $message): string|false |
|
| 42 | + public function getOutputToSend(AbstractMessage $message): string | false |
|
| 43 | 43 | { |
| 44 | 44 | $header = new Header(); |
| 45 | 45 | |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | /** |
| 115 | 115 | * @return string|false |
| 116 | 116 | */ |
| 117 | - protected function getInputStream(): string|false |
|
| 117 | + protected function getInputStream(): string | false |
|
| 118 | 118 | { |
| 119 | 119 | return file_get_contents('php://input'); |
| 120 | 120 | } |
@@ -90,7 +90,7 @@ |
||
| 90 | 90 | * Loads the keys given, optionally excluding keys when a usage is given and they |
| 91 | 91 | * are not configured to be used with the usage given |
| 92 | 92 | */ |
| 93 | - public function loadKeys(array|Traversable $configuredKeys, ?string $usage = null): void |
|
| 93 | + public function loadKeys(array | Traversable $configuredKeys, ?string $usage = null): void |
|
| 94 | 94 | { |
| 95 | 95 | foreach ($configuredKeys as $keyData) { |
| 96 | 96 | if (isset($keyData['X509Certificate'])) { |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | * @param array $data |
| 61 | 61 | */ |
| 62 | 62 | public function getPOSTRedirectURL( |
| 63 | - /** @scrutinizer ignore-unused */?string $url = null, |
|
| 63 | + /** @scrutinizer ignore-unused */ ?string $url = null, |
|
| 64 | 64 | /** @scrutinizer ignore-unused */array $data = [], |
| 65 | 65 | ): string { |
| 66 | 66 | return strval($url); |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | * ) $value |
| 43 | 43 | */ |
| 44 | 44 | final public function __construct( |
| 45 | - protected ValueTypeInterface|AbstractElement|null $value, |
|
| 45 | + protected ValueTypeInterface | AbstractElement | null $value, |
|
| 46 | 46 | ) { |
| 47 | 47 | } |
| 48 | 48 | |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | * null |
| 78 | 78 | * ) |
| 79 | 79 | */ |
| 80 | - public function getValue(): ValueTypeInterface|AbstractElement|null |
|
| 80 | + public function getValue(): ValueTypeInterface | AbstractElement | null |
|
| 81 | 81 | { |
| 82 | 82 | return $this->value; |
| 83 | 83 | } |
@@ -86,7 +86,7 @@ |
||
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | $types = array_map( |
| 89 | - function (AttributeValue $av) { |
|
| 89 | + function(AttributeValue $av) { |
|
| 90 | 90 | return $av->getXsiType(); |
| 91 | 91 | }, |
| 92 | 92 | $attributeValue, |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | Assert::maxCount($statements, C::UNBOUNDED_LIMIT); |
| 92 | 92 | Assert::allIsInstanceOf($statements, AbstractStatementType::class); |
| 93 | 93 | |
| 94 | - $authnStatements = array_values(array_filter($statements, function ($statement) { |
|
| 94 | + $authnStatements = array_values(array_filter($statements, function($statement) { |
|
| 95 | 95 | return $statement instanceof AuthnStatement; |
| 96 | 96 | })); |
| 97 | 97 | |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | ); |
| 104 | 104 | } |
| 105 | 105 | |
| 106 | - $authzDecisionStatements = array_values(array_filter($statements, function ($statement) { |
|
| 106 | + $authzDecisionStatements = array_values(array_filter($statements, function($statement) { |
|
| 107 | 107 | return $statement instanceof AuthzDecisionStatement; |
| 108 | 108 | })); |
| 109 | 109 | |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | ); |
| 116 | 116 | } |
| 117 | 117 | |
| 118 | - $attributeStatements = array_values(array_filter($statements, function ($statement) { |
|
| 118 | + $attributeStatements = array_values(array_filter($statements, function($statement) { |
|
| 119 | 119 | return $statement instanceof AttributeStatement; |
| 120 | 120 | })); |
| 121 | 121 | |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | */ |
| 157 | 157 | public function getAttributeStatements(): array |
| 158 | 158 | { |
| 159 | - return array_values(array_filter($this->statements, function ($statement) { |
|
| 159 | + return array_values(array_filter($this->statements, function($statement) { |
|
| 160 | 160 | return $statement instanceof AttributeStatement; |
| 161 | 161 | })); |
| 162 | 162 | } |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | */ |
| 168 | 168 | public function getAuthnStatements(): array |
| 169 | 169 | { |
| 170 | - return array_values(array_filter($this->statements, function ($statement) { |
|
| 170 | + return array_values(array_filter($this->statements, function($statement) { |
|
| 171 | 171 | return $statement instanceof AuthnStatement; |
| 172 | 172 | })); |
| 173 | 173 | } |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | */ |
| 179 | 179 | public function getStatements(): array |
| 180 | 180 | { |
| 181 | - return array_values(array_filter($this->statements, function ($statement) { |
|
| 181 | + return array_values(array_filter($this->statements, function($statement) { |
|
| 182 | 182 | return $statement instanceof AbstractStatement; |
| 183 | 183 | })); |
| 184 | 184 | } |