mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Code clean up.
This commit is contained in:
@@ -27,7 +27,6 @@ use Closure;
|
||||
use FireflyIII\Support\Domain;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
|
||||
/**
|
||||
* Class Binder
|
||||
*
|
||||
|
@@ -35,7 +35,6 @@ use Preferences;
|
||||
use Session;
|
||||
use View;
|
||||
|
||||
|
||||
/**
|
||||
* Class SessionFilter
|
||||
*
|
||||
@@ -85,7 +84,6 @@ class Range
|
||||
}
|
||||
|
||||
return $next($request);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -132,7 +130,6 @@ class Range
|
||||
{
|
||||
// ignore preference. set the range to be the current month:
|
||||
if (!Session::has('start') && !Session::has('end')) {
|
||||
|
||||
$viewRange = Preferences::get('viewRange', '1M')->data;
|
||||
$start = new Carbon;
|
||||
$start = Navigation::updateStartDate($viewRange, $start);
|
||||
@@ -153,5 +150,4 @@ class Range
|
||||
Session::put('first', $first);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -28,7 +28,6 @@ use Cookie;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Preferences;
|
||||
|
||||
|
||||
/**
|
||||
* Class RedirectIfTwoFactorAuthenticated
|
||||
*
|
||||
@@ -48,7 +47,6 @@ class RedirectIfTwoFactorAuthenticated
|
||||
public function handle($request, Closure $next, $guard = null)
|
||||
{
|
||||
if (Auth::guard($guard)->check()) {
|
||||
|
||||
$is2faEnabled = Preferences::get('twoFactorAuthEnabled', false)->data;
|
||||
$has2faSecret = !is_null(Preferences::get('twoFactorAuthSecret'));
|
||||
|
||||
|
@@ -117,7 +117,6 @@ class Sandstorm
|
||||
if ($count > 1) {
|
||||
throw new FireflyException('Your Firefly III installation has more than one user, which is weird.');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return $next($request);
|
||||
|
@@ -23,7 +23,6 @@ declare(strict_types=1);
|
||||
|
||||
namespace FireflyIII\Http\Middleware;
|
||||
|
||||
|
||||
use Closure;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Session\Middleware\StartSession;
|
||||
|
Reference in New Issue
Block a user