@@ -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; |
@@ -266,7 +266,7 @@ discard block |
||
| 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 |
||
| 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 | /** |