CS fixes
This commit is contained in:
+5
-6
@@ -16,7 +16,7 @@ Route::filter('allowed_domains', 'AllowedDomainsFilter');
|
||||
|
|
||||
*/
|
||||
|
||||
Route::filter('auth', function() {
|
||||
Route::filter('auth', function () {
|
||||
if (Auth::guest()) {
|
||||
if (Request::ajax()) {
|
||||
return Response::make('Unauthorized', 401);
|
||||
@@ -26,8 +26,7 @@ Route::filter('auth', function() {
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Route::filter('auth.basic', function() {
|
||||
Route::filter('auth.basic', function () {
|
||||
return Auth::basic();
|
||||
});
|
||||
|
||||
@@ -42,7 +41,7 @@ Route::filter('auth.basic', function() {
|
||||
|
|
||||
*/
|
||||
|
||||
Route::filter('guest', function() {
|
||||
Route::filter('guest', function () {
|
||||
if (Auth::check()) {
|
||||
return Redirect::to('/');
|
||||
}
|
||||
@@ -59,8 +58,8 @@ Route::filter('guest', function() {
|
||||
|
|
||||
*/
|
||||
|
||||
Route::filter('csrf', function() {
|
||||
Route::filter('csrf', function () {
|
||||
if (Session::token() !== Input::get('_token')) {
|
||||
throw new Illuminate\Session\TokenMismatchException;
|
||||
throw new Illuminate\Session\TokenMismatchException();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user