@@ -76,7 +76,7 @@  | 
                                                    ||
| 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 | |
@@ -76,7 +76,7 @@  | 
                                                    ||
| 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 | |
@@ -68,7 +68,7 @@  | 
                                                    ||
| 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;  | 
                                                        
@@ -221,7 +221,7 @@ discard block  | 
                                                    ||
| 221 | 221 | */  | 
                                                        
| 222 | 222 | public function getAttributeStatements(): array  | 
                                                        
| 223 | 223 |      { | 
                                                        
| 224 | -        return array_values(array_filter($this->statements, function ($statement) { | 
                                                        |
| 224 | +        return array_values(array_filter($this->statements, function($statement) { | 
                                                        |
| 225 | 225 | return $statement instanceof AttributeStatement;  | 
                                                        
| 226 | 226 | }));  | 
                                                        
| 227 | 227 | }  | 
                                                        
@@ -232,7 +232,7 @@ discard block  | 
                                                    ||
| 232 | 232 | */  | 
                                                        
| 233 | 233 | public function getAuthnStatements(): array  | 
                                                        
| 234 | 234 |      { | 
                                                        
| 235 | -        return array_values(array_filter($this->statements, function ($statement) { | 
                                                        |
| 235 | +        return array_values(array_filter($this->statements, function($statement) { | 
                                                        |
| 236 | 236 | return $statement instanceof AuthnStatement;  | 
                                                        
| 237 | 237 | }));  | 
                                                        
| 238 | 238 | }  | 
                                                        
@@ -243,7 +243,7 @@ discard block  | 
                                                    ||
| 243 | 243 | */  | 
                                                        
| 244 | 244 | public function getStatements(): array  | 
                                                        
| 245 | 245 |      { | 
                                                        
| 246 | -        return array_values(array_filter($this->statements, function ($statement) { | 
                                                        |
| 246 | +        return array_values(array_filter($this->statements, function($statement) { | 
                                                        |
| 247 | 247 | return $statement instanceof AbstractStatement;  | 
                                                        
| 248 | 248 | }));  | 
                                                        
| 249 | 249 | }  | 
                                                        
@@ -39,7 +39,7 @@  | 
                                                    ||
| 39 | 39 |      ) { | 
                                                        
| 40 | 40 | Assert::allIsInstanceOfAny($children, [Assertion::class, Attribute::class]);  | 
                                                        
| 41 | 41 | |
| 42 | -        $assertions = array_filter($children, function ($child) { | 
                                                        |
| 42 | +        $assertions = array_filter($children, function($child) { | 
                                                        |
| 43 | 43 | return $child instanceof Assertion;  | 
                                                        
| 44 | 44 | });  | 
                                                        
| 45 | 45 | |
@@ -94,7 +94,7 @@  | 
                                                    ||
| 94 | 94 | Assert::maxCount(  | 
                                                        
| 95 | 95 | array_filter(  | 
                                                        
| 96 | 96 | $attributeConsumingService,  | 
                                                        
| 97 | -                function (AttributeConsumingService $acs) { | 
                                                        |
| 97 | +                function(AttributeConsumingService $acs) { | 
                                                        |
| 98 | 98 | return $acs->getIsDefault() === true;  | 
                                                        
| 99 | 99 | }  | 
                                                        
| 100 | 100 | ),  | 
                                                        
@@ -229,7 +229,7 @@  | 
                                                    ||
| 229 | 229 | Assert::maxCount(array_unique($types), 1, 'Multiple class types cannot be used.');  | 
                                                        
| 230 | 230 | |
| 231 | 231 | $languages = array_map(  | 
                                                        
| 232 | -                function ($elt) { | 
                                                        |
| 232 | +                function($elt) { | 
                                                        |
| 233 | 233 | return $elt->getLanguage();  | 
                                                        
| 234 | 234 | },  | 
                                                        
| 235 | 235 | $elements,  | 
                                                        
@@ -37,7 +37,7 @@  | 
                                                    ||
| 37 | 37 | * within a given <mdrpi:RegistrationInfo>, for a given language  | 
                                                        
| 38 | 38 | */  | 
                                                        
| 39 | 39 | $languages = array_map(  | 
                                                        
| 40 | -            function ($rp) { | 
                                                        |
| 40 | +            function($rp) { | 
                                                        |
| 41 | 41 | return $rp->getLanguage();  | 
                                                        
| 42 | 42 | },  | 
                                                        
| 43 | 43 | $registrationPolicy,  | 
                                                        
@@ -39,7 +39,7 @@  | 
                                                    ||
| 39 | 39 | * within a given <mdrpi:UsageInfo>, for a given language  | 
                                                        
| 40 | 40 | */  | 
                                                        
| 41 | 41 | $languages = array_map(  | 
                                                        
| 42 | -            function ($up) { | 
                                                        |
| 42 | +            function($up) { | 
                                                        |
| 43 | 43 | return $up->getLanguage();  | 
                                                        
| 44 | 44 | },  | 
                                                        
| 45 | 45 | $usagePolicy,  |