Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
36 | 5 | public function handleRequest(RequestInterface $request, callable $next, callable $first) |
|
37 | { |
||
38 | 5 | $request = $request->withUri($request->getUri() |
|
39 | 5 | ->withPath(str_replace('//', '/', $this->host->getPath().$request->getUri()->getPath())) |
|
40 | 5 | ); |
|
41 | |||
42 | 5 | return $next($request); |
|
43 | } |
||
44 | } |
||
45 |