Passed
Push — master ( b9f7e7...d25f8d )
by Tim
02:18
created
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.