From 2c108a91881f82937af49bea95b069111a5bf320 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 1 Nov 2011 23:12:56 -0500 Subject: [PATCH] refactoring the filters. --- application/filters.php | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/application/filters.php b/application/filters.php index c77ead9c..d6fafc79 100644 --- a/application/filters.php +++ b/application/filters.php @@ -50,28 +50,19 @@ return array( 'after' => function($response) { - if (Config::get('session.driver') !== '') - { - Input::flash(); - } + if (Config::get('session.driver') !== '') Input::flash(); }, 'auth' => function() { - if ( ! Auth::check()) - { - return Redirect::to_login(); - } + if ( ! Auth::check()) return Redirect::to_login(); }, 'csrf' => function() { - if (Input::get('csrf_token') !== Form::raw_token()) - { - return Response::error('500'); - } + if (Input::get('csrf_token') !== Form::raw_token()) return Response::error('500'); }, ); \ No newline at end of file