Completed
Branch release-4-alpha (7abb85)
by Tim
01:58
created
src/SAML2/Response/Validation/ConstraintValidator/IsSuccessful.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,8 +22,8 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/SAML2/Signature/PublicKeyValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
         CertificateProvider $configuration
54 54
     ) {
55 55
         $logger = $this->logger;
56
-        $pemCandidates = $this->configuredKeys->filter(function (Key $key) use ($logger) {
56
+        $pemCandidates = $this->configuredKeys->filter(function(Key $key) use ($logger) {
57 57
             if (!$key instanceof X509) {
58 58
                 $logger->debug(sprintf('Skipping unknown key type: "%s"', $key['type']));
59 59
                 return false;
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/Configuration/ServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
     public function getPrivateKey(string $name, bool $required = false)
54 54
     {
55 55
         $privateKeys = $this->get('privateKeys');
56
-        $key         = array_filter($privateKeys, function (PrivateKey $key) use ($name) {
56
+        $key         = array_filter($privateKeys, function(PrivateKey $key) use ($name) {
57 57
             return $key->getName() === $name;
58 58
         });
59 59
 
Please login to merge, or discard this patch.
src/SAML2/Configuration/IdentityProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
     public function getPrivateKey(string $name, bool $required = false)
52 52
     {
53 53
         $privateKeys = $this->get('privateKeys');
54
-        $key = array_filter($privateKeys, function (PrivateKey $key) use ($name) {
54
+        $key = array_filter($privateKeys, function(PrivateKey $key) use ($name) {
55 55
             return $key->getName() === $name;
56 56
         });
57 57
 
Please login to merge, or discard this patch.
src/SAML2/HTTPArtifact.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
     {
82 82
         if (array_key_exists('SAMLart', $_REQUEST)) {
83 83
             $artifact = base64_decode($_REQUEST['SAMLart']);
84
-            $endpointIndex =  bin2hex(substr($artifact, 2, 2));
84
+            $endpointIndex = bin2hex(substr($artifact, 2, 2));
85 85
             $sourceId = bin2hex(substr($artifact, 4, 20));
86 86
         } else {
87 87
             throw new \Exception('Missing SAMLart parameter.');
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 
98 98
         $endpoint = null;
99 99
         foreach ($idpMetadata->getEndpoints('ArtifactResolutionService') as $ep) {
100
-            if ($ep['index'] ===  hexdec($endpointIndex)) {
100
+            if ($ep['index'] === hexdec($endpointIndex)) {
101 101
                 $endpoint = $ep;
102 102
                 break;
103 103
             }
Please login to merge, or discard this patch.
src/SAML2/Utils.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -269,7 +269,7 @@
 block discarded – undo
269 269
      *
270 270
      * @param  \DOMElement $node          The element we should fetch the attribute from.
271 271
      * @param  string      $attributeName The name of the attribute.
272
-     * @param  mixed|null  $default       The value that should be returned if the attribute doesn't exist.
272
+     * @param  false|null  $default       The value that should be returned if the attribute doesn't exist.
273 273
      * @return mixed The value of the attribute, or $default if the attribute doesn't exist.
274 274
      * @throws \Exception
275 275
      */
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -463,8 +463,8 @@
 block discarded – undo
463 463
          * namespaces needed to parse the XML.
464 464
          */
465 465
         $xml = '<root xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" '.
466
-                        'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">' .
467
-            $decrypted .
466
+                        'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">'.
467
+            $decrypted.
468 468
             '</root>';
469 469
 
470 470
         try {
Please login to merge, or discard this patch.