@@ -22,8 +22,8 @@ |
||
| 22 | 22 | return sprintf( |
| 23 | 23 | '%s%s%s', |
| 24 | 24 | $this->truncateStatus($responseStatus['Code']), |
| 25 | - $responseStatus['SubCode'] ? '/' . $this->truncateStatus($responseStatus['SubCode']) : '', |
|
| 26 | - $responseStatus['Message'] ? ' ' . $responseStatus['Message'] : '' |
|
| 25 | + $responseStatus['SubCode'] ? '/'.$this->truncateStatus($responseStatus['SubCode']) : '', |
|
| 26 | + $responseStatus['Message'] ? ' '.$responseStatus['Message'] : '' |
|
| 27 | 27 | ); |
| 28 | 28 | } |
| 29 | 29 | |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | CertificateProvider $configuration |
| 54 | 54 | ) { |
| 55 | 55 | $logger = $this->logger; |
| 56 | - $pemCandidates = $this->configuredKeys->filter(function (Key $key) use ($logger) { |
|
| 56 | + $pemCandidates = $this->configuredKeys->filter(function(Key $key) use ($logger) { |
|
| 57 | 57 | if (!$key instanceof X509) { |
| 58 | 58 | $logger->debug(sprintf('Skipping unknown key type: "%s"', $key['type'])); |
| 59 | 59 | return false; |
@@ -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->protocolSupportEnumeration = preg_split('/[\s]+/', $xml->getAttribute('protocolSupportEnumeration')); |
| 124 | 124 | |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | public function getPrivateKey(string $name, bool $required = false) |
| 54 | 54 | { |
| 55 | 55 | $privateKeys = $this->get('privateKeys'); |
| 56 | - $key = array_filter($privateKeys, function (PrivateKey $key) use ($name) { |
|
| 56 | + $key = array_filter($privateKeys, function(PrivateKey $key) use ($name) { |
|
| 57 | 57 | return $key->getName() === $name; |
| 58 | 58 | }); |
| 59 | 59 | |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | public function getPrivateKey(string $name, bool $required = false) |
| 52 | 52 | { |
| 53 | 53 | $privateKeys = $this->get('privateKeys'); |
| 54 | - $key = array_filter($privateKeys, function (PrivateKey $key) use ($name) { |
|
| 54 | + $key = array_filter($privateKeys, function(PrivateKey $key) use ($name) { |
|
| 55 | 55 | return $key->getName() === $name; |
| 56 | 56 | }); |
| 57 | 57 | |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | { |
| 82 | 82 | if (array_key_exists('SAMLart', $_REQUEST)) { |
| 83 | 83 | $artifact = base64_decode($_REQUEST['SAMLart']); |
| 84 | - $endpointIndex = bin2hex(substr($artifact, 2, 2)); |
|
| 84 | + $endpointIndex = bin2hex(substr($artifact, 2, 2)); |
|
| 85 | 85 | $sourceId = bin2hex(substr($artifact, 4, 20)); |
| 86 | 86 | } else { |
| 87 | 87 | throw new \Exception('Missing SAMLart parameter.'); |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | |
| 98 | 98 | $endpoint = null; |
| 99 | 99 | foreach ($idpMetadata->getEndpoints('ArtifactResolutionService') as $ep) { |
| 100 | - if ($ep['index'] === hexdec($endpointIndex)) { |
|
| 100 | + if ($ep['index'] === hexdec($endpointIndex)) { |
|
| 101 | 101 | $endpoint = $ep; |
| 102 | 102 | break; |
| 103 | 103 | } |
@@ -463,8 +463,8 @@ |
||
| 463 | 463 | * namespaces needed to parse the XML. |
| 464 | 464 | */ |
| 465 | 465 | $xml = '<root xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" '. |
| 466 | - 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">' . |
|
| 467 | - $decrypted . |
|
| 466 | + 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">'. |
|
| 467 | + $decrypted. |
|
| 468 | 468 | '</root>'; |
| 469 | 469 | |
| 470 | 470 | try { |