mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-30 04:23:11 +03:00
Apply fixes from StyleCI
This commit is contained in:
@ -1,13 +1,15 @@
|
||||
<?php namespace BookStack\Http;
|
||||
<?php
|
||||
|
||||
namespace BookStack\Http;
|
||||
|
||||
use Illuminate\Http\Request as LaravelRequest;
|
||||
|
||||
class Request extends LaravelRequest
|
||||
{
|
||||
|
||||
/**
|
||||
* Override the default request methods to get the scheme and host
|
||||
* to set the custom APP_URL, if set.
|
||||
*
|
||||
* @return \Illuminate\Config\Repository|mixed|string
|
||||
*/
|
||||
public function getSchemeAndHttpHost()
|
||||
@ -17,7 +19,7 @@ class Request extends LaravelRequest
|
||||
if ($base) {
|
||||
$base = trim($base, '/');
|
||||
} else {
|
||||
$base = $this->getScheme().'://'.$this->getHttpHost();
|
||||
$base = $this->getScheme() . '://' . $this->getHttpHost();
|
||||
}
|
||||
|
||||
return $base;
|
||||
|
Reference in New Issue
Block a user