mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-06 14:12:15 +00:00
Code cleaning stuff.
This commit is contained in:
@@ -77,12 +77,12 @@ class Authenticate
|
||||
/**
|
||||
* Determine if the user is logged in to any of the given guards.
|
||||
*
|
||||
* @param $request
|
||||
* @param array $guards
|
||||
*
|
||||
* @return mixed
|
||||
* @throws \Illuminate\Auth\AuthenticationException
|
||||
* @throws AuthenticationException
|
||||
* @throws FireflyException
|
||||
*
|
||||
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
|
||||
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||
*/
|
||||
|
||||
@@ -26,13 +26,13 @@ namespace FireflyIII\Http\Middleware;
|
||||
|
||||
use Closure;
|
||||
use DB;
|
||||
use FireflyConfig;
|
||||
use FireflyIII\Exceptions\FireflyException;
|
||||
use Illuminate\Database\QueryException;
|
||||
use Log;
|
||||
|
||||
/**
|
||||
* Class Installer
|
||||
*
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
*/
|
||||
@@ -84,7 +84,7 @@ class Installer
|
||||
|
||||
// older version in config than database?
|
||||
$configVersion = (int)config('firefly.db_version');
|
||||
$dbVersion = (int)FireflyConfig::getFresh('db_version', 1)->data;
|
||||
$dbVersion = (int)app('fireflyconfig')->getFresh('db_version', 1)->data;
|
||||
if ($configVersion > $dbVersion) {
|
||||
Log::warning(
|
||||
sprintf(
|
||||
|
||||
@@ -61,7 +61,7 @@ class SecureHeaders
|
||||
];
|
||||
|
||||
$route = $request->route();
|
||||
if (null !== $route && $route->uri !== 'oauth/authorize') {
|
||||
if (null !== $route && 'oauth/authorize' !== $route->uri) {
|
||||
$csp[] = "form-action 'self'";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user