Various code cleanup.

This commit is contained in:
James Cole
2018-07-08 12:08:53 +02:00
parent 2f2f907ffe
commit b315882f58
56 changed files with 465 additions and 396 deletions

View File

@@ -73,6 +73,7 @@ class Authenticate
return $next($request);
}
/**
* Determine if the user is logged in to any of the given guards.
*

View File

@@ -51,6 +51,7 @@ class AuthenticateTwoFactor
$this->auth = $auth;
}
/**
* @param $request
* @param Closure $next

View File

@@ -48,7 +48,6 @@ class Sandstorm
* @return mixed
*
* @throws FireflyException
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
*/
public function handle(Request $request, Closure $next, $guard = null)
{

View File

@@ -41,7 +41,7 @@ class StartFireflySession extends StartSession
{
$uri = $request->fullUrl();
$strpos = strpos($uri, 'jscript');
if ('GET' === $request->method() && $request->route() && !$request->ajax() && false === $strpos) {
if (false === $strpos && 'GET' === $request->method() && $request->route() && !$request->ajax()) {
$session->setPreviousUrl($uri);
}
}