@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | /** |
109 | 109 | * Check whether the NameId is encrypted. |
110 | 110 | * |
111 | - * @return true if the NameId is encrypted, false if not. |
|
111 | + * @return boolean if the NameId is encrypted, false if not. |
|
112 | 112 | */ |
113 | 113 | public function isNameIdEncrypted() |
114 | 114 | { |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | /** |
188 | 188 | * Set the name identifier of the session that should be terminated. |
189 | 189 | * |
190 | - * @param \SAML2\XML\saml\NameID|array|null $nameId The name identifier of the session that should be terminated. |
|
190 | + * @param NameID|null $nameId The name identifier of the session that should be terminated. |
|
191 | 191 | */ |
192 | 192 | public function setNameId($nameId) |
193 | 193 | { |
@@ -284,7 +284,7 @@ |
||
284 | 284 | if ($this->getEncryptedNameId() === null) { |
285 | 285 | $this->nameId->toXML($root); |
286 | 286 | } else { |
287 | - $eid = $root->ownerDocument->createElementNS(Constants::NS_SAML, 'saml:' . 'EncryptedID'); |
|
287 | + $eid = $root->ownerDocument->createElementNS(Constants::NS_SAML, 'saml:'.'EncryptedID'); |
|
288 | 288 | $root->appendChild($eid); |
289 | 289 | $eid->appendChild($root->ownerDocument->importNode($this->getEncryptedNameId(), true)); |
290 | 290 | } |
@@ -198,7 +198,7 @@ |
||
198 | 198 | |
199 | 199 | /** |
200 | 200 | * Set the value of the Extensions-property |
201 | - * @param array $extensions |
|
201 | + * @param \SAML2\XML\Chunk[] $extensions |
|
202 | 202 | */ |
203 | 203 | public function setExtensions(array $extensions) |
204 | 204 | { |
@@ -40,7 +40,7 @@ |
||
40 | 40 | } |
41 | 41 | |
42 | 42 | if (!$xml->hasAttribute('index')) { |
43 | - throw new \Exception('Missing index on ' . $xml->tagName); |
|
43 | + throw new \Exception('Missing index on '.$xml->tagName); |
|
44 | 44 | } |
45 | 45 | $this->setIndex(intval($xml->getAttribute('index'))); |
46 | 46 |
@@ -118,7 +118,7 @@ |
||
118 | 118 | } |
119 | 119 | |
120 | 120 | if (!$xml->hasAttribute('protocolSupportEnumeration')) { |
121 | - throw new \Exception('Missing protocolSupportEnumeration attribute on ' . $xml->localName); |
|
121 | + throw new \Exception('Missing protocolSupportEnumeration attribute on '.$xml->localName); |
|
122 | 122 | } |
123 | 123 | $this->setProtocolSupportEnumeration(preg_split('/[\s]+/', $xml->getAttribute('protocolSupportEnumeration'))); |
124 | 124 |
@@ -152,7 +152,7 @@ |
||
152 | 152 | public function setAddress($address = null) |
153 | 153 | { |
154 | 154 | assert(is_string($address) || is_null($address)); |
155 | - if (!is_null($address) && !filter_var($address, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4|FILTER_FLAG_IPV6)) { |
|
155 | + if (!is_null($address) && !filter_var($address, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4 | FILTER_FLAG_IPV6)) { |
|
156 | 156 | throw new \InvalidArgumentException('Provided argument is not a valid IP address.'); |
157 | 157 | } |
158 | 158 | $this->Address = $address; |
@@ -198,7 +198,7 @@ |
||
198 | 198 | |
199 | 199 | /** |
200 | 200 | * Set the value of the Extensions-property |
201 | - * @param array $extensions |
|
201 | + * @param \SAML2\XML\Chunk[] $extensions |
|
202 | 202 | */ |
203 | 203 | public function setExtensions(array $extensions) |
204 | 204 | { |
@@ -198,7 +198,7 @@ |
||
198 | 198 | |
199 | 199 | /** |
200 | 200 | * Set the value of the Extensions-property |
201 | - * @param array $extensions |
|
201 | + * @param \SAML2\XML\Chunk[] $extensions |
|
202 | 202 | */ |
203 | 203 | public function setExtensions(array $extensions) |
204 | 204 | { |