Apply fixes from StyleCI (#12117)

* Apply fixes from StyleCI

* Disable style check
This commit is contained in:
Jellyfrog
2020-09-21 14:54:51 +02:00
committed by GitHub
parent 8ec9183df5
commit 77c531527c
752 changed files with 6238 additions and 5833 deletions

View File

@@ -75,7 +75,7 @@ class Laravel
public static function isBooted()
{
return function_exists('app') && !empty(app()->isAlias('Illuminate\Foundation\Application')) && app()->isBooted();
return function_exists('app') && ! empty(app()->isAlias('Illuminate\Foundation\Application')) && app()->isBooted();
}
public static function enableQueryDebug()
@@ -83,7 +83,7 @@ class Laravel
static $sql_debug_enabled;
$db = Eloquent::DB();
if ($db && !$sql_debug_enabled) {
if ($db && ! $sql_debug_enabled) {
$db->listen(function (QueryExecuted $query) {
// collect bindings and make them a little more readable
$bindings = collect($query->bindings)->map(function ($item) {
@@ -139,7 +139,7 @@ class Laravel
// set dummy path allows url helper to work and prevents full init again
$new_uri = ($auth ? '/dummy_legacy_auth' : '/dummy_legacy_unauth');
$request->server->set('REQUEST_URI', $new_uri);
// tests fail without this
if ($request->server->get('REMOTE_ADDR') === null) {
$request->server->set('REMOTE_ADDR', '127.0.0.1');