@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | |
38 | 38 | public function testInvalidCallbackThrowsTypeError(): void |
39 | 39 | { |
40 | - $handler = new CallableHandler(function (): void { |
|
40 | + $handler = new CallableHandler(function(): void { |
|
41 | 41 | }); |
42 | 42 | $this->expectException(\TypeError::class); |
43 | 43 | $handler->handle($this->serverRequest->reveal()); |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | public function testHandleReturnsCallbackResponse(): void |
47 | 47 | { |
48 | 48 | $response = $this->response; |
49 | - $callback = function () use ($response) { |
|
49 | + $callback = function() use ($response) { |
|
50 | 50 | return $response->reveal(); |
51 | 51 | }; |
52 | 52 | $handler = new CallableHandler($callback); |
@@ -31,12 +31,12 @@ |
||
31 | 31 | $this->middleware = new RequestHandlerMiddleware($this->handler->reveal()); |
32 | 32 | |
33 | 33 | $testClass = $this; |
34 | - $this->handler->handle($this->serverRequest->reveal())->will(function () use ($testClass) { |
|
34 | + $this->handler->handle($this->serverRequest->reveal())->will(function() use ($testClass) { |
|
35 | 35 | $testClass->execution[] = \spl_object_hash($this); |
36 | 36 | |
37 | 37 | return $testClass->response->reveal(); |
38 | 38 | }); |
39 | - $this->nextHandler->handle($this->serverRequest->reveal())->will(function () use ($testClass) { |
|
39 | + $this->nextHandler->handle($this->serverRequest->reveal())->will(function() use ($testClass) { |
|
40 | 40 | $testClass->execution[] = \spl_object_hash($this); |
41 | 41 | |
42 | 42 | return $testClass->nextResponse->reveal(); |
@@ -76,8 +76,7 @@ |
||
76 | 76 | { |
77 | 77 | $this->serverRequest->getMethod()->willReturn( |
78 | 78 | $method === RequestMethodInterface::METHOD_GET ? |
79 | - RequestMethodInterface::METHOD_POST : |
|
80 | - RequestMethodInterface::METHOD_GET |
|
79 | + RequestMethodInterface::METHOD_POST : RequestMethodInterface::METHOD_GET |
|
81 | 80 | ); |
82 | 81 | |
83 | 82 | $middleware = new RequestMethodMiddleware( |
@@ -53,7 +53,7 @@ |
||
53 | 53 | $handler |
54 | 54 | ); |
55 | 55 | |
56 | - $this->client = new RequestHandlerClient( |
|
56 | + $this->client = new RequestHandlerClient( |
|
57 | 57 | $this->handler, |
58 | 58 | $serverRequestFactory |
59 | 59 | ); |
@@ -59,7 +59,7 @@ |
||
59 | 59 | { |
60 | 60 | $dispatcher = $this->dispatcher; |
61 | 61 | |
62 | - $handler = new CallableHandler(function (ServerRequestInterface $request) use ($dispatcher) { |
|
62 | + $handler = new CallableHandler(function(ServerRequestInterface $request) use ($dispatcher) { |
|
63 | 63 | return $dispatcher->sendRequest($request); |
64 | 64 | }); |
65 | 65 |