mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 06:17:28 -08:00
Fixed cranky Codacy result
This commit is contained in:
parent
7393f0bbea
commit
dbb2b62223
|
@ -16,10 +16,10 @@ class CheckForDebug
|
||||||
*/
|
*/
|
||||||
public function handle($request, Closure $next)
|
public function handle($request, Closure $next)
|
||||||
{
|
{
|
||||||
|
view()->share('debug_in_production', false);
|
||||||
|
|
||||||
if (((Auth::check() && (Auth::user()->isSuperUser()))) && (app()->environment()=='production') && (config('app.debug')===true)) {
|
if (((Auth::check() && (Auth::user()->isSuperUser()))) && (app()->environment()=='production') && (config('app.debug')===true)) {
|
||||||
view()->share('debug_in_production', true);
|
view()->share('debug_in_production', true);
|
||||||
} else {
|
|
||||||
view()->share('debug_in_production', false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $next($request);
|
return $next($request);
|
||||||
|
|
Loading…
Reference in a new issue