Passed
Pull Request — master (#208)
by Jaime Pérez
02:48
created
src/SAML2/Configuration/IdentityProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
             $required = false;
77 77
         }
78 78
         $privateKeys = $this->get('privateKeys');
79
-        $key = array_filter($privateKeys, function (PrivateKey $key) use ($name) {
79
+        $key = array_filter($privateKeys, function(PrivateKey $key) use ($name) {
80 80
             return $key->getName() === $name;
81 81
         });
82 82
 
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
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
             $required = false;
77 77
         }
78 78
         $privateKeys = $this->get('privateKeys');
79
-        $key = array_filter($privateKeys, function (PrivateKey $key) use ($name) {
79
+        $key = array_filter($privateKeys, function(PrivateKey $key) use ($name) {
80 80
             return $key->getName() === $name;
81 81
         });
82 82
 
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
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
         Assert::notEmpty($this->configuredKeys);
69 69
 
70 70
         $logger = $this->logger;
71
-        $pemCandidates = $this->configuredKeys->filter(function (Key $key) use ($logger) {
71
+        $pemCandidates = $this->configuredKeys->filter(function(Key $key) use ($logger) {
72 72
             if (!$key instanceof X509) {
73 73
                 $logger->debug(sprintf('Skipping unknown key type: "%s"', $key['type']));
74 74
                 return false;
Please login to merge, or discard this patch.
src/SAML2/XML/ExtendableAttributes.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,8 +47,7 @@
 block discarded – undo
47 47
     public function getAttributeNS(string $namespaceURI, string $localName): ?string
48 48
     {
49 49
         return isset($this->namespacedAttributes['{' . $namespaceURI . '}' . $localName]) ?
50
-            $this->namespacedAttributes['{' . $namespaceURI . '}' . $localName]['value'] :
51
-            null;
50
+            $this->namespacedAttributes['{' . $namespaceURI . '}' . $localName]['value'] : null;
52 51
     }
53 52
 
54 53
 
Please login to merge, or discard this patch.