Code cleaning stuff.

This commit is contained in:
James Cole
2019-02-13 17:38:41 +01:00
parent 9a461fc7b7
commit 71fb9d8fa5
141 changed files with 495 additions and 482 deletions

View File

@@ -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)
*/

View File

@@ -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(

View File

@@ -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'";
}