Passed
Push — master ( b9f7e7...d25f8d )
by Tim
02:18
created
src/Utils/XPath.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/Utils/Certificate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
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 = [];
Please login to merge, or discard this patch.
src/XML/xenc/EncryptedKey.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@
 block discarded – undo
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.',
Please login to merge, or discard this patch.
src/Key/AbstractKey.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 abstract class AbstractKey
17 17
 {
18 18
     /** @var OpenSSLAsymmetricKey|string */
19
-    protected OpenSSLAsymmetricKey|string $key_material;
19
+    protected OpenSSLAsymmetricKey | string $key_material;
20 20
 
21 21
 
22 22
     /**
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      *
25 25
      * @param OpenSSLAsymmetricKey|string $key The associated key material.
26 26
      */
27
-    public function __construct(OpenSSLAsymmetricKey|string $key)
27
+    public function __construct(OpenSSLAsymmetricKey | string $key)
28 28
     {
29 29
         $this->key_material = $key;
30 30
     }
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      *
36 36
      * @return OpenSSLAsymmetricKey|string The key material.
37 37
      */
38
-    public function get(): OpenSSLAsymmetricKey|string
38
+    public function get(): OpenSSLAsymmetricKey | string
39 39
     {
40 40
         return $this->key_material;
41 41
     }
Please login to merge, or discard this patch.
src/Key/PublicKey.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
      *
48 48
      * @param OpenSSLAsymmetricKey|string $key The PEM-encoded key material.
49 49
      */
50
-    public function __construct(OpenSSLAsymmetricKey|string $key)
50
+    public function __construct(OpenSSLAsymmetricKey | string $key)
51 51
     {
52 52
         parent::__construct(openssl_pkey_get_public($key));
53 53
     }
Please login to merge, or discard this patch.
src/Key/PrivateKey.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
      * @param OpenSSLAsymmetricKey|string $key The PEM-encoded key material.
20 20
      * @param string $passphrase An optional passphrase used to decrypt the given key material.
21 21
      */
22
-    final public function __construct(OpenSSLAsymmetricKey|string $key, string $passphrase = "")
22
+    final public function __construct(OpenSSLAsymmetricKey | string $key, string $passphrase = "")
23 23
     {
24 24
         parent::__construct(openssl_pkey_get_private($key, $passphrase));
25 25
     }
Please login to merge, or discard this patch.
src/Key/X509Certificate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
      * @throws \SimpleSAML\XMLSecurity\Exception\InvalidArgumentException If the certificate cannot be read from $cert.
56 56
      * @throws \SimpleSAML\XMLSecurity\Exception\RuntimeException If the certificate cannot be exported to PEM format.
57 57
      */
58
-    final public function __construct(OpenSSLCertificate|string $cert)
58
+    final public function __construct(OpenSSLCertificate | string $cert)
59 59
     {
60 60
         $resource = openssl_x509_read($cert);
61 61
         if ($resource === false) {
Please login to merge, or discard this patch.