| @@ -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; | 
| @@ -115,7 +115,7 @@ | ||
| 115 | 115 | Assert::maxCount( | 
| 116 | 116 | array_filter( | 
| 117 | 117 | $this->getAttributeConsumingService(), | 
| 118 | -                function (AttributeConsumingService $acs) { | |
| 118 | +                function(AttributeConsumingService $acs) { | |
| 119 | 119 | return $acs->getIsDefault() === true; | 
| 120 | 120 | } | 
| 121 | 121 | ), | 
| @@ -64,7 +64,7 @@ | ||
| 64 | 64 |      { | 
| 65 | 65 | Assert::allIsInstanceOfAny($children, [Assertion::class, Attribute::class]); | 
| 66 | 66 | |
| 67 | -        $assertions = array_filter($children, function ($child) { | |
| 67 | +        $assertions = array_filter($children, function($child) { | |
| 68 | 68 | return $child instanceof Assertion; | 
| 69 | 69 | }); | 
| 70 | 70 | |
| @@ -161,7 +161,7 @@ | ||
| 161 | 161 | * within a given <mdrpi:UsageInfo>, for a given language | 
| 162 | 162 | */ | 
| 163 | 163 | $languages = array_map( | 
| 164 | -            function ($up) { | |
| 164 | +            function($up) { | |
| 165 | 165 | return $up->getLanguage(); | 
| 166 | 166 | }, | 
| 167 | 167 | $usagePolicy | 
| @@ -129,7 +129,7 @@ | ||
| 129 | 129 | * within a given <mdrpi:RegistrationInfo>, for a given language | 
| 130 | 130 | */ | 
| 131 | 131 | $languages = array_map( | 
| 132 | -            function ($rp) { | |
| 132 | +            function($rp) { | |
| 133 | 133 | return $rp->getLanguage(); | 
| 134 | 134 | }, | 
| 135 | 135 | $registrationPolicy | 
| @@ -366,7 +366,7 @@ | ||
| 366 | 366 | Assert::maxCount(array_unique($types), 1, 'Multiple class types cannot be used.'); | 
| 367 | 367 | |
| 368 | 368 | $languages = array_map( | 
| 369 | -                function ($elt) { | |
| 369 | +                function($elt) { | |
| 370 | 370 | return $elt->getLanguage(); | 
| 371 | 371 | }, | 
| 372 | 372 | $elements | 
| @@ -115,7 +115,7 @@ | ||
| 115 | 115 | list($element) = $qname; | 
| 116 | 116 | } | 
| 117 | 117 | $ns = $xml->lookupNamespaceUri($prefix); | 
| 118 | -        $type = ($ns === null ) ? $element : implode(':', [$ns, $element]); | |
| 118 | +        $type = ($ns === null) ? $element : implode(':', [$ns, $element]); | |
| 119 | 119 | |
| 120 | 120 | // now check if we have a handler registered for it | 
| 121 | 121 | $handler = Utils::getContainer()->getExtensionHandler($type); |