Passed
Push — master ( d5342d...ace0e3 )
by Felipe
02:01
created
src/Application.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,12 +52,11 @@
 block discarded – undo
52 52
             new MiddlewareHandler(
53 53
                 $middleware,
54 54
                 $handler
55
-            ) :
56
-            new RequestHandlerMiddleware(
55
+            ) : new RequestHandlerMiddleware(
57 56
                 $handler
58 57
             );
59 58
 
60
-        $this->client  = new PsrHttpClient(
59
+        $this->client = new PsrHttpClient(
61 60
             $this->handler,
62 61
             $serverRequestFactory
63 62
         );
Please login to merge, or discard this patch.
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   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
         $this->next       = $this->prophesize(RequestHandlerInterface::class);
39 39
 
40 40
         $testClass = $this;
41
-        $callback  = function () use ($testClass) {
41
+        $callback  = function() use ($testClass) {
42 42
             $testClass->execution[] = \spl_object_hash($this);
43 43
 
44 44
             return $testClass->response->reveal();
Please login to merge, or discard this patch.
tests/Middleware/RequestMethodMiddlewareTest.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 
44 44
     public function provideMethods()
45 45
     {
46
-        $reflection    = new \ReflectionClass(RequestMethodInterface::class);
46
+        $reflection = new \ReflectionClass(RequestMethodInterface::class);
47 47
         $allowedMethods = $reflection->getConstants();
48 48
 
49 49
         return \array_chunk($allowedMethods, 1);
@@ -77,8 +77,7 @@  discard block
 block discarded – undo
77 77
     {
78 78
         $this->serverRequest->getMethod()->willReturn(
79 79
             $method === RequestMethodInterface::METHOD_GET ?
80
-                RequestMethodInterface::METHOD_POST :
81
-                RequestMethodInterface::METHOD_GET
80
+                RequestMethodInterface::METHOD_POST : RequestMethodInterface::METHOD_GET
82 81
         );
83 82
 
84 83
         $middleware = new RequestMethodMiddleware(
Please login to merge, or discard this patch.