Passed
Push — master ( 467261...bf6407 )
by Felipe
01:52
created
tests/Handler/CallableHandlerTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
tests/Middleware/RequestHandlerMiddlewareTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,12 +31,12 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
tests/Middleware/RequestMethodMiddlewareTest.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,8 +76,7 @@
 block discarded – undo
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(
Please login to merge, or discard this patch.
src/Dispatcher.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
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
         );
Please login to merge, or discard this patch.
src/Application.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.