Passed
Push — master ( 1849ae...73997f )
by Felipe
01:57
created
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.