@@ -72,7 +72,7 @@ |
||
| 72 | 72 | if (strpos($keyword, "+") !== false) { |
| 73 | 73 | throw new \Exception('Keywords may not contain a "+" character.'); |
| 74 | 74 | } |
| 75 | - $value .= str_replace(' ', '+', $keyword) . ' '; |
|
| 75 | + $value .= str_replace(' ', '+', $keyword).' '; |
|
| 76 | 76 | } |
| 77 | 77 | $value = rtrim($value); |
| 78 | 78 | $e->appendChild($doc->createTextNode($value)); |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | SignedElement $signedElement, |
| 71 | 71 | CertificateProvider $configuration |
| 72 | 72 | ) { |
| 73 | - $this->certificates = array_map(function ($certificate) { |
|
| 73 | + $this->certificates = array_map(function($certificate) { |
|
| 74 | 74 | return X509::createFromCertificateData($certificate); |
| 75 | 75 | }, $this->certificates); |
| 76 | 76 | |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | case Constants::BINDING_PAOS: |
| 45 | 45 | return new SOAP(); |
| 46 | 46 | default: |
| 47 | - throw new \Exception('Unsupported binding: ' . var_export($urn, true)); |
|
| 47 | + throw new \Exception('Unsupported binding: '.var_export($urn, true)); |
|
| 48 | 48 | } |
| 49 | 49 | } |
| 50 | 50 | |
@@ -90,15 +90,15 @@ discard block |
||
| 90 | 90 | |
| 91 | 91 | $logger = Utils::getContainer()->getLogger(); |
| 92 | 92 | $logger->warning('Unable to find the SAML 2 binding used for this request.'); |
| 93 | - $logger->warning('Request method: ' . var_export($_SERVER['REQUEST_METHOD'], true)); |
|
| 93 | + $logger->warning('Request method: '.var_export($_SERVER['REQUEST_METHOD'], true)); |
|
| 94 | 94 | if (!empty($_GET)) { |
| 95 | - $logger->warning("GET parameters: '" . implode("', '", array_map('addslashes', array_keys($_GET))) . "'"); |
|
| 95 | + $logger->warning("GET parameters: '".implode("', '", array_map('addslashes', array_keys($_GET)))."'"); |
|
| 96 | 96 | } |
| 97 | 97 | if (!empty($_POST)) { |
| 98 | - $logger->warning("POST parameters: '" . implode("', '", array_map('addslashes', array_keys($_POST))) . "'"); |
|
| 98 | + $logger->warning("POST parameters: '".implode("', '", array_map('addslashes', array_keys($_POST)))."'"); |
|
| 99 | 99 | } |
| 100 | 100 | if (isset($_SERVER['CONTENT_TYPE'])) { |
| 101 | - $logger->warning('Content-Type: ' . var_export($_SERVER['CONTENT_TYPE'], true)); |
|
| 101 | + $logger->warning('Content-Type: '.var_export($_SERVER['CONTENT_TYPE'], true)); |
|
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | throw new \Exception('Unable to find the current binding.'); |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | */ |
| 17 | 17 | public function emergency($message, array $context = []) |
| 18 | 18 | { |
| 19 | - \SimpleSAML\Logger::emergency($message . ($context ? " " . var_export($context, true) : "")); |
|
| 19 | + \SimpleSAML\Logger::emergency($message.($context ? " ".var_export($context, true) : "")); |
|
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | /** |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | */ |
| 32 | 32 | public function alert($message, array $context = []) |
| 33 | 33 | { |
| 34 | - \SimpleSAML\Logger::alert($message . ($context ? " " . var_export($context, true) : "")); |
|
| 34 | + \SimpleSAML\Logger::alert($message.($context ? " ".var_export($context, true) : "")); |
|
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | /** |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | */ |
| 46 | 46 | public function critical($message, array $context = []) |
| 47 | 47 | { |
| 48 | - \SimpleSAML\Logger::critical($message . ($context ? " " . var_export($context, true) : "")); |
|
| 48 | + \SimpleSAML\Logger::critical($message.($context ? " ".var_export($context, true) : "")); |
|
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | /** |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | */ |
| 59 | 59 | public function error($message, array $context = []) |
| 60 | 60 | { |
| 61 | - \SimpleSAML\Logger::error($message . ($context ? " " . var_export($context, true) : "")); |
|
| 61 | + \SimpleSAML\Logger::error($message.($context ? " ".var_export($context, true) : "")); |
|
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | /** |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | */ |
| 74 | 74 | public function warning($message, array $context = []) |
| 75 | 75 | { |
| 76 | - \SimpleSAML\Logger::warning($message . ($context ? " " . var_export($context, true) : "")); |
|
| 76 | + \SimpleSAML\Logger::warning($message.($context ? " ".var_export($context, true) : "")); |
|
| 77 | 77 | } |
| 78 | 78 | |
| 79 | 79 | /** |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | */ |
| 86 | 86 | public function notice($message, array $context = []) |
| 87 | 87 | { |
| 88 | - \SimpleSAML\Logger::notice($message . ($context ? " " . var_export($context, true) : "")); |
|
| 88 | + \SimpleSAML\Logger::notice($message.($context ? " ".var_export($context, true) : "")); |
|
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | /** |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | */ |
| 100 | 100 | public function info($message, array $context = []) |
| 101 | 101 | { |
| 102 | - \SimpleSAML\Logger::info($message . ($context ? " " . var_export($context, true) : "")); |
|
| 102 | + \SimpleSAML\Logger::info($message.($context ? " ".var_export($context, true) : "")); |
|
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | /** |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | */ |
| 112 | 112 | public function debug($message, array $context = []) |
| 113 | 113 | { |
| 114 | - \SimpleSAML\Logger::debug($message . ($context ? " " . var_export($context, true) : "")); |
|
| 114 | + \SimpleSAML\Logger::debug($message.($context ? " ".var_export($context, true) : "")); |
|
| 115 | 115 | } |
| 116 | 116 | |
| 117 | 117 | /** |
@@ -159,7 +159,7 @@ |
||
| 159 | 159 | $type = null; |
| 160 | 160 | } |
| 161 | 161 | |
| 162 | - $attributeValue = Utils::addString($attribute, Constants::NS_SAML, 'saml:AttributeValue', (string)$value); |
|
| 162 | + $attributeValue = Utils::addString($attribute, Constants::NS_SAML, 'saml:AttributeValue', (string) $value); |
|
| 163 | 163 | if ($type !== null) { |
| 164 | 164 | $attributeValue->setAttributeNS(Constants::NS_XSI, 'xsi:type', $type); |
| 165 | 165 | } |
@@ -67,13 +67,13 @@ |
||
| 67 | 67 | |
| 68 | 68 | // ported from |
| 69 | 69 | // https://github.com/simplesamlphp/simplesamlphp/blob/3d735912342767d391297cc5e13272a76730aca0/lib/SimpleSAML/Configuration.php#L1119 |
| 70 | - if ($configuration->hasValue($prefix . 'certificate')) { |
|
| 70 | + if ($configuration->hasValue($prefix.'certificate')) { |
|
| 71 | 71 | $extracted['certificateData'] = $configuration->getString($prefix.'certificate'); |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | // ported from |
| 75 | 75 | // https://github.com/simplesamlphp/simplesamlphp/blob/3d735912342767d391297cc5e13272a76730aca0/modules/saml/lib/Message.php#L161 |
| 76 | - if ($configuration->hasValue($prefix . 'certFingerprint')) { |
|
| 76 | + if ($configuration->hasValue($prefix.'certFingerprint')) { |
|
| 77 | 77 | $extracted['certificateFingerprint'] = $configuration->getArrayizeString('certFingerprint'); |
| 78 | 78 | } |
| 79 | 79 | |
@@ -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 | } |
@@ -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 | } |
@@ -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 | |