Code clean up.

This commit is contained in:
James Cole
2017-11-15 10:52:29 +01:00
parent aee17221eb
commit 649dca77f5
305 changed files with 1200 additions and 1600 deletions

View File

@@ -27,7 +27,6 @@ use Closure;
use FireflyIII\Support\Domain;
use Illuminate\Http\Request;
/**
* Class Binder
*

View File

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

View File

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

View File

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

View File

@@ -23,7 +23,6 @@ declare(strict_types=1);
namespace FireflyIII\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
use Illuminate\Session\Middleware\StartSession;