Completed
Pull Request — master (#55)
by Thijs
03:52
created
src/SAML2/HTTPRedirect.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -45,21 +45,21 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
         }
100 100
 
101 101
         if (isset($data['SAMLEncoding']) && $data['SAMLEncoding'] !== self::DEFLATE) {
102
-            throw new Exception('Unknown SAMLEncoding: ' . var_export($data['SAMLEncoding'], true));
102
+            throw new Exception('Unknown SAMLEncoding: '.var_export($data['SAMLEncoding'], true));
103 103
         }
104 104
 
105 105
         $message = base64_decode($message);
@@ -175,18 +175,18 @@  discard block
 block discarded – undo
175 175
             switch ($name) {
176 176
                 case 'SAMLRequest':
177 177
                 case 'SAMLResponse':
178
-                    $sigQuery = $name . '=' . $value;
178
+                    $sigQuery = $name.'='.$value;
179 179
                     break;
180 180
                 case 'RelayState':
181
-                    $relayState = '&RelayState=' . $value;
181
+                    $relayState = '&RelayState='.$value;
182 182
                     break;
183 183
                 case 'SigAlg':
184
-                    $sigAlg = '&SigAlg=' . $value;
184
+                    $sigAlg = '&SigAlg='.$value;
185 185
                     break;
186 186
             }
187 187
         }
188 188
 
189
-        $data['SignedQuery'] = $sigQuery . $relayState . $sigAlg;
189
+        $data['SignedQuery'] = $sigQuery.$relayState.$sigAlg;
190 190
 
191 191
         return $data;
192 192
     }
Please login to merge, or discard this patch.