Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
46 | public function handleRequest(RequestInterface $request, callable $next, callable $first): Promise |
||
47 | { |
||
48 | $prepend = $this->uri->getPath(); |
||
49 | $path = $request->getUri()->getPath(); |
||
50 | if (0 !== strpos($path, $prepend)) { |
||
51 | $request = $request->withUri($request->getUri()->withPath($prepend . $path)); |
||
52 | } |
||
53 | |||
54 | return $next($request); |
||
55 | } |
||
57 |