@@ -20,7 +20,7 @@ discard block |
||
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 |
||
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 |
||
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); |