Completed
Push — master ( 2cd087...04d939 )
by Thijs
08:00
created
src/SAML2/XML/md/IndexedEndpointType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
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->index = (int) $xml->getAttribute('index');
46 46
 
Please login to merge, or discard this patch.
src/SAML2/XML/md/RoleDescriptor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
118 118
         }
119 119
 
120 120
         if (!$xml->hasAttribute('protocolSupportEnumeration')) {
121
-            throw new \Exception('Missing protocolSupportEnumeration attribute on ' . $xml->localName);
121
+            throw new \Exception('Missing protocolSupportEnumeration attribute on '.$xml->localName);
122 122
         }
123 123
         $this->protocolSupportEnumeration = preg_split('/[\s]+/', $xml->getAttribute('protocolSupportEnumeration'));
124 124
 
Please login to merge, or discard this patch.
src/SAML2/XML/mdui/DiscoHints.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,8 +59,8 @@
 block discarded – undo
59 59
             return;
60 60
         }
61 61
 
62
-        $this->IPHint =          Utils::extractStrings($xml, self::NS, 'IPHint');
63
-        $this->DomainHint =      Utils::extractStrings($xml, self::NS, 'DomainHint');
62
+        $this->IPHint = Utils::extractStrings($xml, self::NS, 'IPHint');
63
+        $this->DomainHint = Utils::extractStrings($xml, self::NS, 'DomainHint');
64 64
         $this->GeolocationHint = Utils::extractStrings($xml, self::NS, 'GeolocationHint');
65 65
 
66 66
         foreach (Utils::xpQuery($xml, "./*[namespace-uri()!='".self::NS."']") as $node) {
Please login to merge, or discard this patch.
src/SAML2/HTTPRedirect.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -49,21 +49,21 @@  discard block
 block discarded – undo
49 49
         $msg .= urlencode($msgStr);
50 50
 
51 51
         if ($relayState !== null) {
52
-            $msg .= '&RelayState=' . urlencode($relayState);
52
+            $msg .= '&RelayState='.urlencode($relayState);
53 53
         }
54 54
 
55 55
         if ($key !== null) {
56 56
             /* Add the signature. */
57
-            $msg .= '&SigAlg=' . urlencode($key->type);
57
+            $msg .= '&SigAlg='.urlencode($key->type);
58 58
 
59 59
             $signature = $key->signData($msg);
60
-            $msg .= '&Signature=' . urlencode(base64_encode($signature));
60
+            $msg .= '&Signature='.urlencode(base64_encode($signature));
61 61
         }
62 62
 
63 63
         if (strpos($destination, '?') === false) {
64
-            $destination .= '?' . $msg;
64
+            $destination .= '?'.$msg;
65 65
         } else {
66
-            $destination .= '&' . $msg;
66
+            $destination .= '&'.$msg;
67 67
         }
68 68
 
69 69
         return $destination;
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
     public function send(Message $message)
80 80
     {
81 81
         $destination = $this->getRedirectURL($message);
82
-        Utils::getContainer()->getLogger()->debug('Redirect to ' . strlen($destination) . ' byte URL: ' . $destination);
82
+        Utils::getContainer()->getLogger()->debug('Redirect to '.strlen($destination).' byte URL: '.$destination);
83 83
         Utils::getContainer()->redirect($destination);
84 84
     }
85 85
 
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
         }
107 107
 
108 108
         if (isset($data['SAMLEncoding']) && $data['SAMLEncoding'] !== self::DEFLATE) {
109
-            throw new \Exception('Unknown SAMLEncoding: ' . var_export($data['SAMLEncoding'], true));
109
+            throw new \Exception('Unknown SAMLEncoding: '.var_export($data['SAMLEncoding'], true));
110 110
         }
111 111
 
112 112
         $message = base64_decode($message);
@@ -182,18 +182,18 @@  discard block
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/SAML2/Assertion.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
 
247 247
         if ($xml->getAttribute('Version') !== '2.0') {
248 248
             /* Currently a very strict check. */
249
-            throw new \Exception('Unsupported version: ' . $xml->getAttribute('Version'));
249
+            throw new \Exception('Unsupported version: '.$xml->getAttribute('Version'));
250 250
         }
251 251
 
252 252
         $this->issueInstant = Utils::xsDateTimeToTimestamp($xml->getAttribute('IssueInstant'));
@@ -346,7 +346,7 @@  discard block
 block discarded – undo
346 346
                 continue;
347 347
             }
348 348
             if ($node->namespaceURI !== Constants::NS_SAML) {
349
-                throw new \Exception('Unknown namespace of condition: ' . var_export($node->namespaceURI, true));
349
+                throw new \Exception('Unknown namespace of condition: '.var_export($node->namespaceURI, true));
350 350
             }
351 351
             switch ($node->localName) {
352 352
                 case 'AudienceRestriction':
@@ -369,7 +369,7 @@  discard block
 block discarded – undo
369 369
                     /* Currently ignored. */
370 370
                     break;
371 371
                 default:
372
-                    throw new \Exception('Unknown condition: ' . var_export($node->localName, true));
372
+                    throw new \Exception('Unknown condition: '.var_export($node->localName, true));
373 373
             }
374 374
         }
375 375
     }
@@ -530,7 +530,7 @@  discard block
 block discarded – undo
530 530
 
531 531
             $type = $value->getAttribute('xsi:type');
532 532
             if ($type === 'xs:integer') {
533
-                $this->attributes[$attributeName][] = (int)$value->textContent;
533
+                $this->attributes[$attributeName][] = (int) $value->textContent;
534 534
             } else {
535 535
                 $this->attributes[$attributeName][] = trim($value->textContent);
536 536
             }
@@ -1287,7 +1287,7 @@  discard block
 block discarded – undo
1287 1287
             $document = $parentElement->ownerDocument;
1288 1288
         }
1289 1289
 
1290
-        $root = $document->createElementNS(Constants::NS_SAML, 'saml:' . 'Assertion');
1290
+        $root = $document->createElementNS(Constants::NS_SAML, 'saml:'.'Assertion');
1291 1291
         $parentElement->appendChild($root);
1292 1292
 
1293 1293
         /* Ugly hack to add another namespace declaration to the root element. */
@@ -1339,7 +1339,7 @@  discard block
 block discarded – undo
1339 1339
         if ($this->encryptedNameId === null) {
1340 1340
             Utils::addNameId($subject, $this->nameId);
1341 1341
         } else {
1342
-            $eid = $subject->ownerDocument->createElementNS(Constants::NS_SAML, 'saml:' . 'EncryptedID');
1342
+            $eid = $subject->ownerDocument->createElementNS(Constants::NS_SAML, 'saml:'.'EncryptedID');
1343 1343
             $subject->appendChild($eid);
1344 1344
             $eid->appendChild($subject->ownerDocument->importNode($this->encryptedNameId, true));
1345 1345
         }
Please login to merge, or discard this patch.