@@ -44,7 +44,7 @@ |
||
44 | 44 | * |
45 | 45 | * @throws RuntimeException If no DOM document is available. |
46 | 46 | */ |
47 | - public static function findElement(DOMNode $ref, string $name): DOMElement|false |
|
47 | + public static function findElement(DOMNode $ref, string $name): DOMElement | false |
|
48 | 48 | { |
49 | 49 | $doc = $ref instanceof DOMDocument ? $ref : $ref->ownerDocument; |
50 | 50 | if ($doc === null) { |
@@ -54,7 +54,7 @@ |
||
54 | 54 | * |
55 | 55 | * @return string |
56 | 56 | */ |
57 | - public static function parseIssuer(array|string $issuer): string |
|
57 | + public static function parseIssuer(array | string $issuer): string |
|
58 | 58 | { |
59 | 59 | if (is_array($issuer)) { |
60 | 60 | $parts = []; |
@@ -134,7 +134,7 @@ |
||
134 | 134 | */ |
135 | 135 | public function decrypt(EncryptionAlgorithmInterface $decryptor): string |
136 | 136 | { |
137 | - $cipherValue = $this->getCipherData()->getCipherValue(); |
|
137 | + $cipherValue = $this->getCipherData()->getCipherValue(); |
|
138 | 138 | Assert::notNull( |
139 | 139 | $cipherValue, |
140 | 140 | 'Decrypting keys by reference is not supported.', |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | } |
74 | 74 | |
75 | 75 | $pems = array_map( |
76 | - function ($match) { |
|
76 | + function($match) { |
|
77 | 77 | $payload = preg_replace('/\s+/', '', $match[2]); |
78 | 78 | $data = base64_decode($payload, true); |
79 | 79 | if (false === $data) { |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | return implode( |
210 | 210 | "\n", |
211 | 211 | array_map( |
212 | - function (PEM $pem) { |
|
212 | + function(PEM $pem) { |
|
213 | 213 | return $pem->string(); |
214 | 214 | }, |
215 | 215 | $this->pems |
@@ -45,10 +45,10 @@ |
||
45 | 45 | */ |
46 | 46 | public const PEM_REGEX = |
47 | 47 | '/' . |
48 | - '(?:^|[\r\n])' . // line start |
|
48 | + '(?:^|[\r\n])' . // line start |
|
49 | 49 | '-----BEGIN (.+?)-----[\r\n]+' . // header |
50 | - '(.+?)' . // payload |
|
51 | - '[\r\n]+-----END \\1-----' . // footer |
|
50 | + '(.+?)' . // payload |
|
51 | + '[\r\n]+-----END \\1-----' . // footer |
|
52 | 52 | '/ms'; |
53 | 53 | |
54 | 54 |