StyleCI fixes

This commit is contained in:
Nico Stapelbroek 2018-02-04 13:42:59 +01:00
parent 52db03cb66
commit f4af539881
2 changed files with 6 additions and 6 deletions

View File

@ -57,7 +57,7 @@ class RouteServiceProvider extends ServiceProvider
AuthRoutes::class,
SetupRoutes::class,
ApiSystemRoutes::class,
ApiSetupRoutes::class
ApiSetupRoutes::class,
];
/**
@ -148,7 +148,6 @@ class RouteServiceProvider extends ServiceProvider
SubstituteBindings::class,
];
if ($applyAlwaysAuthenticate && !$this->isWhiteListedAuthRoute($routes)) {
$middleware[] = Authenticate::class;
}
@ -187,19 +186,20 @@ class RouteServiceProvider extends ServiceProvider
/**
* Validates if the route object is an instance of the whitelisted routes.
* A small workaround since we cant use multiple classes in a `instanceof` comparison
* A small workaround since we cant use multiple classes in a `instanceof` comparison.
*
* @param object $routes
* @param object $routes
*
* @return bool
*/
private function isWhiteListedAuthRoute($routes)
{
foreach ($this->whitelistedAuthRoutes as $whitelistedRoute) {
if(is_a($routes, $whitelistedRoute)) {
if (is_a($routes, $whitelistedRoute)) {
return true;
}
}
return false;
}
}

View File

@ -20,8 +20,8 @@ use Exception;
use GrahamCampbell\Binput\Facades\Binput;
use Illuminate\Log\Writer;
use Illuminate\Routing\Controller;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\Lang;
use Illuminate\Support\Facades\Redirect;