@@ -45,21 +45,21 @@ discard block |
||
45 | 45 | $msg .= urlencode($msgStr); |
46 | 46 | |
47 | 47 | if ($relayState !== NULL) { |
48 | - $msg .= '&RelayState=' . urlencode($relayState); |
|
48 | + $msg .= '&RelayState='.urlencode($relayState); |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | if ($key !== NULL) { |
52 | 52 | /* Add the signature. */ |
53 | - $msg .= '&SigAlg=' . urlencode($key->type); |
|
53 | + $msg .= '&SigAlg='.urlencode($key->type); |
|
54 | 54 | |
55 | 55 | $signature = $key->signData($msg); |
56 | - $msg .= '&Signature=' . urlencode(base64_encode($signature)); |
|
56 | + $msg .= '&Signature='.urlencode(base64_encode($signature)); |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | if (strpos($destination, '?') === FALSE) { |
60 | - $destination .= '?' . $msg; |
|
60 | + $destination .= '?'.$msg; |
|
61 | 61 | } else { |
62 | - $destination .= '&' . $msg; |
|
62 | + $destination .= '&'.$msg; |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | return $destination; |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | public function send(SAML2_Message $message) |
76 | 76 | { |
77 | 77 | $destination = $this->getRedirectURL($message); |
78 | - SAML2_Utils::getContainer()->getLogger()->debug('Redirect to ' . strlen($destination) . ' byte URL: ' . $destination); |
|
78 | + SAML2_Utils::getContainer()->getLogger()->debug('Redirect to '.strlen($destination).' byte URL: '.$destination); |
|
79 | 79 | SAML2_Utils::getContainer()->redirect($destination); |
80 | 80 | } |
81 | 81 | |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | } |
103 | 103 | |
104 | 104 | if (isset($data['SAMLEncoding']) && $data['SAMLEncoding'] !== self::DEFLATE) { |
105 | - throw new Exception('Unknown SAMLEncoding: ' . var_export($data['SAMLEncoding'], TRUE)); |
|
105 | + throw new Exception('Unknown SAMLEncoding: '.var_export($data['SAMLEncoding'], TRUE)); |
|
106 | 106 | } |
107 | 107 | |
108 | 108 | $message = base64_decode($message); |
@@ -178,18 +178,18 @@ discard block |
||
178 | 178 | switch ($name) { |
179 | 179 | case 'SAMLRequest': |
180 | 180 | case 'SAMLResponse': |
181 | - $sigQuery = $name . '=' . $value; |
|
181 | + $sigQuery = $name.'='.$value; |
|
182 | 182 | break; |
183 | 183 | case 'RelayState': |
184 | - $relayState = '&RelayState=' . $value; |
|
184 | + $relayState = '&RelayState='.$value; |
|
185 | 185 | break; |
186 | 186 | case 'SigAlg': |
187 | - $sigAlg = '&SigAlg=' . $value; |
|
187 | + $sigAlg = '&SigAlg='.$value; |
|
188 | 188 | break; |
189 | 189 | } |
190 | 190 | } |
191 | 191 | |
192 | - $data['SignedQuery'] = $sigQuery . $relayState . $sigAlg; |
|
192 | + $data['SignedQuery'] = $sigQuery.$relayState.$sigAlg; |
|
193 | 193 | |
194 | 194 | return $data; |
195 | 195 | } |