Passed
Pull Request — master (#210)
by Thijs
02:42
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/md/ContactPerson.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
      */
267 267
     private function removeEmailMailtoPrefix(string $emailAddress): string
268 268
     {
269
-        return substr(strtolower($emailAddress),0,7) === 'mailto:' ? substr($emailAddress,7) : $emailAddress;
269
+        return substr(strtolower($emailAddress), 0, 7) === 'mailto:' ? substr($emailAddress, 7) : $emailAddress;
270 270
     }
271 271
 
272 272
     /**
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
      */
278 278
     public function setEmailAddress(array $emailAddress): void
279 279
     {
280
-        $this->EmailAddress = array_map([$this,'removeEmailMailtoPrefix'], $emailAddress);
280
+        $this->EmailAddress = array_map([$this, 'removeEmailMailtoPrefix'], $emailAddress);
281 281
     }
282 282
 
283 283
     /**
Please login to merge, or discard this patch.