mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-27 06:01:54 +03:00
Applied styleci changes
This commit is contained in:
@ -36,6 +36,7 @@ class Request extends LaravelRequest
|
|||||||
|
|
||||||
if ($appUrl) {
|
if ($appUrl) {
|
||||||
$parsedBaseUrl = rtrim(implode('/', array_slice(explode('/', $appUrl), 3)), '/');
|
$parsedBaseUrl = rtrim(implode('/', array_slice(explode('/', $appUrl), 3)), '/');
|
||||||
|
|
||||||
return empty($parsedBaseUrl) ? '' : ('/' . $parsedBaseUrl);
|
return empty($parsedBaseUrl) ? '' : ('/' . $parsedBaseUrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -48,5 +48,4 @@ class UrlTest extends TestCase
|
|||||||
$this->assertEquals('/settings', $bsRequest->getPathInfo());
|
$this->assertEquals('/settings', $bsRequest->getPathInfo());
|
||||||
$this->assertEquals('https://donkey.example.com/settings', $bsRequest->getUri());
|
$this->assertEquals('https://donkey.example.com/settings', $bsRequest->getUri());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user