@@ -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 | |
@@ -106,18 +106,18 @@ discard block |
||
| 106 | 106 | } |
| 107 | 107 | |
| 108 | 108 | $msg = base64_decode($msg); |
| 109 | - if ( $msg === FALSE ) { |
|
| 109 | + if ($msg === FALSE) { |
|
| 110 | 110 | throw new Exception('Error while base64 decoding SAML message.'); |
| 111 | 111 | } |
| 112 | 112 | switch ($encoding) { |
| 113 | 113 | case self::DEFLATE: |
| 114 | 114 | $msg = gzinflate($msg); |
| 115 | - if ( $msg === FALSE ) { |
|
| 115 | + if ($msg === FALSE) { |
|
| 116 | 116 | throw new Exception('Error while inflating SAML message.'); |
| 117 | 117 | } |
| 118 | 118 | break; |
| 119 | 119 | default: |
| 120 | - throw new Exception('Unknown SAMLEncoding: ' . var_export($encoding, TRUE)); |
|
| 120 | + throw new Exception('Unknown SAMLEncoding: '.var_export($encoding, TRUE)); |
|
| 121 | 121 | } |
| 122 | 122 | |
| 123 | 123 | SAML2_Utils::getContainer()->debugMessage($msg, 'in'); |
@@ -182,18 +182,18 @@ discard block |
||
| 182 | 182 | switch ($name) { |
| 183 | 183 | case 'SAMLRequest': |
| 184 | 184 | case 'SAMLResponse': |
| 185 | - $sigQuery = $name . '=' . $value; |
|
| 185 | + $sigQuery = $name.'='.$value; |
|
| 186 | 186 | break; |
| 187 | 187 | case 'RelayState': |
| 188 | - $relayState = '&RelayState=' . $value; |
|
| 188 | + $relayState = '&RelayState='.$value; |
|
| 189 | 189 | break; |
| 190 | 190 | case 'SigAlg': |
| 191 | - $sigAlg = '&SigAlg=' . $value; |
|
| 191 | + $sigAlg = '&SigAlg='.$value; |
|
| 192 | 192 | break; |
| 193 | 193 | } |
| 194 | 194 | } |
| 195 | 195 | |
| 196 | - $data['SignedQuery'] = $sigQuery . $relayState . $sigAlg; |
|
| 196 | + $data['SignedQuery'] = $sigQuery.$relayState.$sigAlg; |
|
| 197 | 197 | |
| 198 | 198 | return $data; |
| 199 | 199 | } |