Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
CS fixes per phpcs
Browse files Browse the repository at this point in the history
Too long of lines
  • Loading branch information
weierophinney committed Jan 9, 2018
1 parent 3cf72d3 commit b6db186
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions test/Middleware/PathMiddlewareDecoratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,10 @@ public function testNestedMiddlewareOnlyMatchesAtPathBoundaries(
$finalHandler->handle(Argument::any())->willReturn(new Response());

$nested = new PathMiddlewareDecorator($nestPrefix, new class () implements MiddlewareInterface {
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
{
public function process(
ServerRequestInterface $request,
RequestHandlerInterface $handler
) : ResponseInterface {
return (new Response())->withHeader('X-Found', 'true');
}
});
Expand All @@ -263,8 +265,10 @@ public function __construct(MiddlewareInterface $middleware)
$this->middleware = $middleware;
}

public function process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
{
public function process(
ServerRequestInterface $request,
RequestHandlerInterface $handler
) : ResponseInterface {
return $this->middleware->process($request, $handler);
}
});
Expand Down

0 comments on commit b6db186

Please sign in to comment.