@@ -68,7 +68,7 @@ |
||
68 | 68 | if (strpos($keyword, "+") !== FALSE) { |
69 | 69 | throw new Exception('Keywords may not contain a "+" character.'); |
70 | 70 | } |
71 | - $value .= str_replace(' ', '+', $keyword) . ' '; |
|
71 | + $value .= str_replace(' ', '+', $keyword).' '; |
|
72 | 72 | } |
73 | 73 | $value = rtrim($value); |
74 | 74 | $e->appendChild($doc->createTextNode($value)); |
@@ -173,8 +173,8 @@ |
||
173 | 173 | foreach ($this->certificates as $cert) { |
174 | 174 | |
175 | 175 | /* We have found a matching fingerprint. */ |
176 | - $pemCert = "-----BEGIN CERTIFICATE-----\n" . |
|
177 | - chunk_split($cert, 64) . |
|
176 | + $pemCert = "-----BEGIN CERTIFICATE-----\n". |
|
177 | + chunk_split($cert, 64). |
|
178 | 178 | "-----END CERTIFICATE-----\n"; |
179 | 179 | |
180 | 180 | /* Extract the public key from the certificate for validation. */ |
@@ -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 |
@@ -51,25 +51,25 @@ |
||
51 | 51 | |
52 | 52 | // ported from |
53 | 53 | // https://github.com/simplesamlphp/simplesamlphp/blob/3d735912342767d391297cc5e13272a76730aca0/lib/SimpleSAML/Configuration.php#L1092 |
54 | - if ($configuration->hasValue($prefix . 'keys')) { |
|
55 | - $extracted['keys'] = $configuration->getArray($prefix . 'keys'); |
|
54 | + if ($configuration->hasValue($prefix.'keys')) { |
|
55 | + $extracted['keys'] = $configuration->getArray($prefix.'keys'); |
|
56 | 56 | } |
57 | 57 | |
58 | 58 | // ported from |
59 | 59 | // https://github.com/simplesamlphp/simplesamlphp/blob/3d735912342767d391297cc5e13272a76730aca0/lib/SimpleSAML/Configuration.php#L1108 |
60 | - if ($configuration->hasValue($prefix . 'certData')) { |
|
61 | - $extracted['certificateData'] = $configuration->getString($prefix . 'certData'); |
|
60 | + if ($configuration->hasValue($prefix.'certData')) { |
|
61 | + $extracted['certificateData'] = $configuration->getString($prefix.'certData'); |
|
62 | 62 | } |
63 | 63 | |
64 | 64 | // ported from |
65 | 65 | // https://github.com/simplesamlphp/simplesamlphp/blob/3d735912342767d391297cc5e13272a76730aca0/lib/SimpleSAML/Configuration.php#L1119 |
66 | - if ($configuration->hasValue($prefix . 'certificate')) { |
|
67 | - $extracted['certificateData'] = $configuration->getString($prefix . 'certificate'); |
|
66 | + if ($configuration->hasValue($prefix.'certificate')) { |
|
67 | + $extracted['certificateData'] = $configuration->getString($prefix.'certificate'); |
|
68 | 68 | } |
69 | 69 | |
70 | 70 | // ported from |
71 | 71 | // https://github.com/simplesamlphp/simplesamlphp/blob/3d735912342767d391297cc5e13272a76730aca0/modules/saml/lib/Message.php#L161 |
72 | - if ($configuration->hasValue($prefix . 'certFingerprint')) { |
|
72 | + if ($configuration->hasValue($prefix.'certFingerprint')) { |
|
73 | 73 | $extracted['certificateFingerprint'] = $configuration->getArrayizeString('certFingerprint'); |
74 | 74 | } |
75 | 75 |
@@ -68,7 +68,7 @@ |
||
68 | 68 | |
69 | 69 | throw new SAML2_Signature_MissingConfigurationException(sprintf( |
70 | 70 | 'No certificates or fingerprints have been configured%s', |
71 | - $configuration->has('entityid') ? ' for "' . $configuration->get('entityid') . '"' : '' |
|
71 | + $configuration->has('entityid') ? ' for "'.$configuration->get('entityid').'"' : '' |
|
72 | 72 | )); |
73 | 73 | } |
74 | 74 | } |
@@ -57,7 +57,7 @@ |
||
57 | 57 | SAML2_SignedElement $signedElement, |
58 | 58 | SAML2_Configuration_CertificateProvider $configuration |
59 | 59 | ) { |
60 | - $this->certificates = array_map(function ($certificate) { |
|
60 | + $this->certificates = array_map(function($certificate) { |
|
61 | 61 | return SAML2_Certificate_X509::createFromCertificateData($certificate); |
62 | 62 | }, $this->certificates); |
63 | 63 |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | case Constants::BINDING_HOK_SSO: |
40 | 40 | return new HTTPPost(); |
41 | 41 | default: |
42 | - throw new \Exception('Unsupported binding: ' . var_export($urn, true)); |
|
42 | + throw new \Exception('Unsupported binding: '.var_export($urn, true)); |
|
43 | 43 | } |
44 | 44 | } |
45 | 45 | |
@@ -85,15 +85,15 @@ discard block |
||
85 | 85 | |
86 | 86 | $logger = Utils::getContainer()->getLogger(); |
87 | 87 | $logger->warning('Unable to find the SAML 2 binding used for this request.'); |
88 | - $logger->warning('Request method: ' . var_export($_SERVER['REQUEST_METHOD'], true)); |
|
88 | + $logger->warning('Request method: '.var_export($_SERVER['REQUEST_METHOD'], true)); |
|
89 | 89 | if (!empty($_GET)) { |
90 | - $logger->warning("GET parameters: '" . implode("', '", array_map('addslashes', array_keys($_GET))) . "'"); |
|
90 | + $logger->warning("GET parameters: '".implode("', '", array_map('addslashes', array_keys($_GET)))."'"); |
|
91 | 91 | } |
92 | 92 | if (!empty($_POST)) { |
93 | - $logger->warning("POST parameters: '" . implode("', '", array_map('addslashes', array_keys($_POST))) . "'"); |
|
93 | + $logger->warning("POST parameters: '".implode("', '", array_map('addslashes', array_keys($_POST)))."'"); |
|
94 | 94 | } |
95 | 95 | if (isset($_SERVER['CONTENT_TYPE'])) { |
96 | - $logger->warning('Content-Type: ' . var_export($_SERVER['CONTENT_TYPE'], true)); |
|
96 | + $logger->warning('Content-Type: '.var_export($_SERVER['CONTENT_TYPE'], true)); |
|
97 | 97 | } |
98 | 98 | |
99 | 99 | throw new \Exception('Unable to find the current binding.'); |
@@ -48,7 +48,7 @@ |
||
48 | 48 | public function getPrivateKey($name, $required = false) |
49 | 49 | { |
50 | 50 | $privateKeys = $this->get('privateKeys'); |
51 | - $key = array_filter($privateKeys, function (PrivateKey $key) use ($name) { |
|
51 | + $key = array_filter($privateKeys, function(PrivateKey $key) use ($name) { |
|
52 | 52 | return $key->getName() === $name; |
53 | 53 | }); |
54 | 54 |
@@ -50,7 +50,7 @@ |
||
50 | 50 | public function getPrivateKey($name, $required = false) |
51 | 51 | { |
52 | 52 | $privateKeys = $this->get('privateKeys'); |
53 | - $key = array_filter($privateKeys, function (PrivateKey $key) use ($name) { |
|
53 | + $key = array_filter($privateKeys, function(PrivateKey $key) use ($name) { |
|
54 | 54 | return $key->getName() === $name; |
55 | 55 | }); |
56 | 56 |