Conditions | 3 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
47 | public function handleRequest(RequestInterface $request, callable $next, callable $first) |
||
48 | { |
||
49 | if ($this->replace || $request->getUri()->getHost() === '') { |
||
50 | $uri = $request->getUri()->withHost($this->baseUri->getHost()); |
||
51 | $uri = $uri->withScheme($this->baseUri->getScheme()); |
||
52 | |||
53 | $request = $request->withUri($uri); |
||
54 | } |
||
55 | |||
56 | return $next($request); |
||
57 | } |
||
58 | |||
70 |