Completed
Push — master ( c3ed74...023bd4 )
by Simon
01:30
created
src/Authentication/JWTAuthenticator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -62,9 +62,9 @@  discard block
 block discarded – undo
62 62
         if (file_exists($signerKey)) {
63 63
             $this->signer = new RsaSha256();
64 64
             $password = getenv('JWT_KEY_PASSWORD');
65
-            $this->privateKey = new Key('file://' . $signerKey, $password ?: null);
65
+            $this->privateKey = new Key('file://'.$signerKey, $password ?: null);
66 66
             // We're having an RSA signed key instead of a string
67
-            $this->publicKey = new Key('file://' . getenv('JWT_PUBLIC_KEY'));
67
+            $this->publicKey = new Key('file://'.getenv('JWT_PUBLIC_KEY'));
68 68
         } else {
69 69
             $this->signer = new Sha256();
70 70
             $this->privateKey = $signerKey;
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      * @throws \OutOfBoundsException
91 91
      * @throws \BadMethodCallException
92 92
      */
93
-    public function authenticate(array $data, HTTPRequest $request, ValidationResult &$result = null)
93
+    public function authenticate(array $data, HTTPRequest $request, ValidationResult & $result = null)
94 94
     {
95 95
         if (!$result) {
96 96
             $result = new ValidationResult();
Please login to merge, or discard this patch.