1
0
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:
Dan Brown
2021-06-26 15:23:15 +00:00
committed by StyleCI Bot
parent 3a402f6adc
commit 934a833818
349 changed files with 3655 additions and 2625 deletions

View File

@ -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;