Fix indentation .. again ;-)
authorPhilipp <admin@philipp.info>
Mon, 14 Sep 2020 04:34:03 +0000 (06:34 +0200)
committerPhilipp <admin@philipp.info>
Mon, 14 Sep 2020 04:34:03 +0000 (06:34 +0200)
src/Util/Crypto.php
tests/src/Util/CryptoTest.php

index 55852d5..7b2c75a 100644 (file)
@@ -73,11 +73,10 @@ class Crypto
        public static function meToPem($m, $e)
        {
                $rsa = new RSA();
-               $rsa->loadKey(
-                       [
-                               'e' => new BigInteger($e, 256),
-                               'n' => new BigInteger($m, 256)
-                       ]);
+               $rsa->loadKey([
+                       'e' => new BigInteger($e, 256),
+                       'n' => new BigInteger($m, 256)
+               ]);
                return $rsa->getPublicKey();
        }
 
index c6c17bd..6478c69 100644 (file)
@@ -90,11 +90,10 @@ class CryptoTest extends TestCase
                Crypto::pemToMe($key, $m, $e);
 
                $expectedRSA = new RSA();
-               $expectedRSA->loadKey(
-                       [
-                               'e' => new BigInteger($e, 256),
-                               'n' => new BigInteger($m, 256)
-                       ]);
+               $expectedRSA->loadKey([
+                       'e' => new BigInteger($e, 256),
+                       'n' => new BigInteger($m, 256)
+               ]);
 
                $this->assertEquals($expectedRSA->getPublicKey(), $key);
        }