@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | |
246 | 246 | if ($xml->getAttribute('Version') !== '2.0') { |
247 | 247 | /* Currently a very strict check. */ |
248 | - throw new \Exception('Unsupported version: ' . $xml->getAttribute('Version')); |
|
248 | + throw new \Exception('Unsupported version: '.$xml->getAttribute('Version')); |
|
249 | 249 | } |
250 | 250 | |
251 | 251 | $this->issueInstant = Utils::xsDateTimeToTimestamp($xml->getAttribute('IssueInstant')); |
@@ -345,7 +345,7 @@ discard block |
||
345 | 345 | continue; |
346 | 346 | } |
347 | 347 | if ($node->namespaceURI !== Constants::NS_SAML) { |
348 | - throw new \Exception('Unknown namespace of condition: ' . var_export($node->namespaceURI, true)); |
|
348 | + throw new \Exception('Unknown namespace of condition: '.var_export($node->namespaceURI, true)); |
|
349 | 349 | } |
350 | 350 | switch ($node->localName) { |
351 | 351 | case 'AudienceRestriction': |
@@ -368,7 +368,7 @@ discard block |
||
368 | 368 | /* Currently ignored. */ |
369 | 369 | break; |
370 | 370 | default: |
371 | - throw new \Exception('Unknown condition: ' . var_export($node->localName, true)); |
|
371 | + throw new \Exception('Unknown condition: '.var_export($node->localName, true)); |
|
372 | 372 | } |
373 | 373 | } |
374 | 374 | } |
@@ -504,7 +504,7 @@ discard block |
||
504 | 504 | $values = Utils::xpQuery($attribute, './saml_assertion:AttributeValue'); |
505 | 505 | foreach ($values as $value) { |
506 | 506 | $hasNonTextChildElements = false; |
507 | - foreach($value->childNodes as $childNode) { |
|
507 | + foreach ($value->childNodes as $childNode) { |
|
508 | 508 | /** @var \DOMNode $childNode */ |
509 | 509 | if ($childNode->nodeType !== XML_TEXT_NODE) { |
510 | 510 | $hasNonTextChildElements = true; |
@@ -1280,7 +1280,7 @@ discard block |
||
1280 | 1280 | $document = $parentElement->ownerDocument; |
1281 | 1281 | } |
1282 | 1282 | |
1283 | - $root = $document->createElementNS(Constants::NS_SAML, 'saml:' . 'Assertion'); |
|
1283 | + $root = $document->createElementNS(Constants::NS_SAML, 'saml:'.'Assertion'); |
|
1284 | 1284 | $parentElement->appendChild($root); |
1285 | 1285 | |
1286 | 1286 | /* Ugly hack to add another namespace declaration to the root element. */ |
@@ -1332,7 +1332,7 @@ discard block |
||
1332 | 1332 | if ($this->encryptedNameId === null) { |
1333 | 1333 | Utils::addNameId($subject, $this->nameId); |
1334 | 1334 | } else { |
1335 | - $eid = $subject->ownerDocument->createElementNS(Constants::NS_SAML, 'saml:' . 'EncryptedID'); |
|
1335 | + $eid = $subject->ownerDocument->createElementNS(Constants::NS_SAML, 'saml:'.'EncryptedID'); |
|
1336 | 1336 | $subject->appendChild($eid); |
1337 | 1337 | $eid->appendChild($subject->ownerDocument->importNode($this->encryptedNameId, true)); |
1338 | 1338 | } |