@@ -753,7 +753,7 @@ discard block |
||
753 | 753 | /** |
754 | 754 | * Check whether the NameId is encrypted. |
755 | 755 | * |
756 | - * @return true if the NameId is encrypted, false if not. |
|
756 | + * @return boolean if the NameId is encrypted, false if not. |
|
757 | 757 | */ |
758 | 758 | public function isNameIdEncrypted() |
759 | 759 | { |
@@ -1155,7 +1155,7 @@ discard block |
||
1155 | 1155 | * |
1156 | 1156 | * The URI reference MAY directly resolve into an XML document containing the referenced declaration. |
1157 | 1157 | * |
1158 | - * @return string |
|
1158 | + * @return Chunk |
|
1159 | 1159 | */ |
1160 | 1160 | public function getAuthnContextDeclRef() |
1161 | 1161 | { |
@@ -1217,7 +1217,6 @@ discard block |
||
1217 | 1217 | /** |
1218 | 1218 | * Replace all attributes value types.. |
1219 | 1219 | * |
1220 | - * @param array $attributes All new attribute value types, as an associative array. |
|
1221 | 1220 | */ |
1222 | 1221 | public function setAttributesValueTypes(array $attributesValueTypes) |
1223 | 1222 | { |
@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | |
278 | 278 | if ($xml->getAttribute('Version') !== '2.0') { |
279 | 279 | /* Currently a very strict check. */ |
280 | - throw new \Exception('Unsupported version: ' . $xml->getAttribute('Version')); |
|
280 | + throw new \Exception('Unsupported version: '.$xml->getAttribute('Version')); |
|
281 | 281 | } |
282 | 282 | |
283 | 283 | $this->issueInstant = Utils::xsDateTimeToTimestamp($xml->getAttribute('IssueInstant')); |
@@ -379,7 +379,7 @@ discard block |
||
379 | 379 | continue; |
380 | 380 | } |
381 | 381 | if ($node->namespaceURI !== Constants::NS_SAML) { |
382 | - throw new \Exception('Unknown namespace of condition: ' . var_export($node->namespaceURI, true)); |
|
382 | + throw new \Exception('Unknown namespace of condition: '.var_export($node->namespaceURI, true)); |
|
383 | 383 | } |
384 | 384 | switch ($node->localName) { |
385 | 385 | case 'AudienceRestriction': |
@@ -402,7 +402,7 @@ discard block |
||
402 | 402 | /* Currently ignored. */ |
403 | 403 | break; |
404 | 404 | default: |
405 | - throw new \Exception('Unknown condition: ' . var_export($node->localName, true)); |
|
405 | + throw new \Exception('Unknown condition: '.var_export($node->localName, true)); |
|
406 | 406 | } |
407 | 407 | } |
408 | 408 | } |
@@ -589,7 +589,7 @@ discard block |
||
589 | 589 | } |
590 | 590 | |
591 | 591 | if ($type === 'xs:integer') { |
592 | - $this->attributes[$attributeName][] = (int)$value->textContent; |
|
592 | + $this->attributes[$attributeName][] = (int) $value->textContent; |
|
593 | 593 | } else { |
594 | 594 | $this->attributes[$attributeName][] = trim($value->textContent); |
595 | 595 | } |
@@ -1367,7 +1367,7 @@ discard block |
||
1367 | 1367 | $document = $parentElement->ownerDocument; |
1368 | 1368 | } |
1369 | 1369 | |
1370 | - $root = $document->createElementNS(Constants::NS_SAML, 'saml:' . 'Assertion'); |
|
1370 | + $root = $document->createElementNS(Constants::NS_SAML, 'saml:'.'Assertion'); |
|
1371 | 1371 | $parentElement->appendChild($root); |
1372 | 1372 | |
1373 | 1373 | /* Ugly hack to add another namespace declaration to the root element. */ |
@@ -1423,7 +1423,7 @@ discard block |
||
1423 | 1423 | if ($this->encryptedNameId === null) { |
1424 | 1424 | $this->nameId->toXML($subject); |
1425 | 1425 | } else { |
1426 | - $eid = $subject->ownerDocument->createElementNS(Constants::NS_SAML, 'saml:' . 'EncryptedID'); |
|
1426 | + $eid = $subject->ownerDocument->createElementNS(Constants::NS_SAML, 'saml:'.'EncryptedID'); |
|
1427 | 1427 | $subject->appendChild($eid); |
1428 | 1428 | $eid->appendChild($subject->ownerDocument->importNode($this->encryptedNameId, true)); |
1429 | 1429 | } |
@@ -1575,7 +1575,7 @@ discard block |
||
1575 | 1575 | if (is_array($this->attributesValueTypes) && array_key_exists($name, $this->attributesValueTypes)) { |
1576 | 1576 | $valueTypes = $this->attributesValueTypes[$name]; |
1577 | 1577 | if (is_array($valueTypes) && count($valueTypes) != count($values)) { |
1578 | - throw new \Exception('Array of value types and array of values have different size for attribute '. var_export($name, true)); |
|
1578 | + throw new \Exception('Array of value types and array of values have different size for attribute '.var_export($name, true)); |
|
1579 | 1579 | } |
1580 | 1580 | } else { |
1581 | 1581 | // if no type(s), default behaviour |