@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | } |
151 | 151 | |
152 | 152 | /** |
153 | - * @param XMLSecurityKey|null $privateKey |
|
153 | + * @param XMLSecurityKey $privateKey |
|
154 | 154 | * |
155 | 155 | * @return AbstractCredential |
156 | 156 | */ |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | } |
163 | 163 | |
164 | 164 | /** |
165 | - * @param XMLSecurityKey|null $publicKey |
|
165 | + * @param XMLSecurityKey $publicKey |
|
166 | 166 | * |
167 | 167 | * @return AbstractCredential |
168 | 168 | */ |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | } |
63 | 63 | |
64 | 64 | /** |
65 | - * @param array|string[] $names |
|
65 | + * @param string[] $names |
|
66 | 66 | * @param string|null $namespace |
67 | 67 | */ |
68 | 68 | protected function singleElementsToXml(array $names, \DOMNode $parent, SerializationContext $context, $namespace = null) |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | } |
166 | 166 | |
167 | 167 | /** |
168 | - * @param array|string[] $names |
|
168 | + * @param string[] $names |
|
169 | 169 | */ |
170 | 170 | protected function attributesToXml(array $names, \DOMElement $element) |
171 | 171 | { |
@@ -61,15 +61,15 @@ discard block |
||
61 | 61 | */ |
62 | 62 | public function register(Container $pimple) |
63 | 63 | { |
64 | - $pimple[ServiceContainer::NAME_ID_VALIDATOR] = function () { |
|
64 | + $pimple[ServiceContainer::NAME_ID_VALIDATOR] = function() { |
|
65 | 65 | return new NameIdValidator(); |
66 | 66 | }; |
67 | 67 | |
68 | - $pimple[ServiceContainer::ASSERTION_TIME_VALIDATOR] = function () { |
|
68 | + $pimple[ServiceContainer::ASSERTION_TIME_VALIDATOR] = function() { |
|
69 | 69 | return new AssertionTimeValidator(); |
70 | 70 | }; |
71 | 71 | |
72 | - $pimple[ServiceContainer::ASSERTION_VALIDATOR] = function (Container $c) { |
|
72 | + $pimple[ServiceContainer::ASSERTION_VALIDATOR] = function(Container $c) { |
|
73 | 73 | $nameIdValidator = $c[ServiceContainer::NAME_ID_VALIDATOR]; |
74 | 74 | |
75 | 75 | return new AssertionValidator( |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | ); |
80 | 80 | }; |
81 | 81 | |
82 | - $pimple[ServiceContainer::ENDPOINT_RESOLVER] = function () { |
|
82 | + $pimple[ServiceContainer::ENDPOINT_RESOLVER] = function() { |
|
83 | 83 | return new CompositeEndpointResolver([ |
84 | 84 | new BindingEndpointResolver(), |
85 | 85 | new DescriptorTypeEndpointResolver(), |
@@ -89,33 +89,33 @@ discard block |
||
89 | 89 | ]); |
90 | 90 | }; |
91 | 91 | |
92 | - $pimple[ServiceContainer::BINDING_FACTORY] = function () { |
|
92 | + $pimple[ServiceContainer::BINDING_FACTORY] = function() { |
|
93 | 93 | return new BindingFactory($this->systemContainer->getEventDispatcher()); |
94 | 94 | }; |
95 | 95 | |
96 | - $pimple[ServiceContainer::CREDENTIAL_RESOLVER] = function () { |
|
96 | + $pimple[ServiceContainer::CREDENTIAL_RESOLVER] = function() { |
|
97 | 97 | $factory = new CredentialResolverFactory($this->credentialContainer->getCredentialStore()); |
98 | 98 | |
99 | 99 | return $factory->build(); |
100 | 100 | }; |
101 | 101 | |
102 | - $pimple[ServiceContainer::SIGNATURE_RESOLVER] = function (Container $c) { |
|
102 | + $pimple[ServiceContainer::SIGNATURE_RESOLVER] = function(Container $c) { |
|
103 | 103 | $credentialResolver = $c[ServiceContainer::CREDENTIAL_RESOLVER]; |
104 | 104 | |
105 | 105 | return new OwnSignatureResolver($credentialResolver); |
106 | 106 | }; |
107 | 107 | |
108 | - $pimple[ServiceContainer::SIGNATURE_VALIDATOR] = function (Container $c) { |
|
108 | + $pimple[ServiceContainer::SIGNATURE_VALIDATOR] = function(Container $c) { |
|
109 | 109 | $credentialResolver = $c[ServiceContainer::CREDENTIAL_RESOLVER]; |
110 | 110 | |
111 | 111 | return new SignatureValidator($credentialResolver); |
112 | 112 | }; |
113 | 113 | |
114 | - $pimple[ServiceContainer::LOGOUT_SESSION_RESOLVER] = function () { |
|
114 | + $pimple[ServiceContainer::LOGOUT_SESSION_RESOLVER] = function() { |
|
115 | 115 | return new LogoutSessionResolver($this->storeContainer->getSsoStateStore()); |
116 | 116 | }; |
117 | 117 | |
118 | - $pimple[ServiceContainer::SESSION_PROCESSOR] = function () { |
|
118 | + $pimple[ServiceContainer::SESSION_PROCESSOR] = function() { |
|
119 | 119 | return new SessionProcessor($this->storeContainer->getSsoStateStore(), $this->systemContainer->getTimeProvider()); |
120 | 120 | }; |
121 | 121 | } |
@@ -70,7 +70,7 @@ |
||
70 | 70 | throw new LightSamlContextException($context, $message); |
71 | 71 | } |
72 | 72 | $this->logger->info('Trusted decryption candidates', LogHelper::getActionContext($context, $this, [ |
73 | - 'credentials' => array_map(function (CredentialInterface $credential) { |
|
73 | + 'credentials' => array_map(function(CredentialInterface $credential) { |
|
74 | 74 | return sprintf( |
75 | 75 | "Entity: '%s'; PK X509 Thumb: '%s'", |
76 | 76 | $credential->getEntityId(), |