Passed
Push — master ( d1587d...554284 )
by Charles
02:54
created
src/Keypair.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      *
36 36
      * @return string|null
37 37
      */
38
-    public function getPublicKey() :? string
38
+    public function getPublicKey() : ? string
39 39
     {
40 40
         return $this->publicKey;
41 41
     }
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      *
46 46
      * @return string|null
47 47
      */
48
-    public function getSecretKey() :? string
48
+    public function getSecretKey() : ? string
49 49
     {
50 50
         return $this->secretKey;
51 51
     }
Please login to merge, or discard this patch.
src/Authorization.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -232,7 +232,7 @@
 block discarded – undo
232 232
      * @param string $date
233 233
      * @return int|boolean
234 234
      */
235
-    private function getTimeDrift(string $date) :? int
235
+    private function getTimeDrift(string $date) : ? int
236 236
     {
237 237
         $now = new \DateTime();
238 238
         $now->format(\DateTime::RFC1123);
Please login to merge, or discard this patch.
src/middleware/AbstractAuthentication.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
      * @param string $accessToken
89 89
      * @return \ncryptf\Token
90 90
      */
91
-    abstract protected function getTokenFromAccessToken(string $accessToken) :? Token;
91
+    abstract protected function getTokenFromAccessToken(string $accessToken) : ? Token;
92 92
 
93 93
     /**
94 94
      * Returns the plaintext request body. If the request is encrypted with vnd.ncryptf+<type>
Please login to merge, or discard this patch.
tests/AuthenticationTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 
21 21
 final class MockAuthentication extends AbstractAuthentication
22 22
 {
23
-    protected function getTokenFromAccessToken(string $accessToken) :? Token
23
+    protected function getTokenFromAccessToken(string $accessToken) : ? Token
24 24
     {
25 25
         // Return a fixed token
26 26
         return new Token(
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
             $response = Dispatcher::run(
56 56
                 [
57 57
                     new MockAuthentication,
58
-                    function ($request, $next) {
58
+                    function($request, $next) {
59 59
                         $this->assertInstanceOf('\ncryptf\Token', $request->getAttribute('ncryptf-token'));
60 60
                         $this->assertEquals(true, \is_array($request->getAttribute('ncryptf-user')));
61 61
                         return $next->handle($request);
@@ -63,9 +63,9 @@  discard block
 block discarded – undo
63 63
                 ],
64 64
                 Factory::createServerRequest($params[0], $params[1])
65 65
                     ->withHeader('Authorization', $auth->getHeader())
66
-                    ->withBody((function () use ($params) {
66
+                    ->withBody((function() use ($params) {
67 67
                         $stream = fopen('php://memory', 'r+');
68
-                        fwrite($stream, \is_array($params[2]) ? \json_encode($params[2]): $params[2]);
68
+                        fwrite($stream, \is_array($params[2]) ? \json_encode($params[2]) : $params[2]);
69 69
                         rewind($stream);
70 70
                         
71 71
                         return new \Zend\Diactoros\Stream($stream);
Please login to merge, or discard this patch.