mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Apply fixes from StyleCI (#12117)
* Apply fixes from StyleCI * Disable style check
This commit is contained in:
@@ -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');
|
||||
|
Reference in New Issue
Block a user