From ae9824f80b5e8dc66fa991c9eb37bb95c38d69f1 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 7 Jul 2011 08:53:05 -0700 Subject: [PATCH] Remove comment bloat from Route\Filter class. --- system/route/filter.php | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/system/route/filter.php b/system/route/filter.php index 6b1c59f7..6c66e259 100644 --- a/system/route/filter.php +++ b/system/route/filter.php @@ -24,9 +24,6 @@ public static function call($filters, $parameters = array(), $override = false) static::$filters = require APP_PATH.'filters'.EXT; } - // -------------------------------------------------------------- - // Filters can be comma-delimited, so spin through each one. - // -------------------------------------------------------------- foreach (explode(', ', $filters) as $filter) { if ( ! isset(static::$filters[$filter])) @@ -36,13 +33,9 @@ public static function call($filters, $parameters = array(), $override = false) $response = call_user_func_array(static::$filters[$filter], $parameters); - // -------------------------------------------------------------- - // If overriding is set to true and the filter returned a - // response, return that response. - // - // Overriding allows for convenient halting of the request - // flow for things like authentication, CSRF protection, etc. - // -------------------------------------------------------------- + // If overriding is set to true and the filter returned a response, return that response. + // Overriding allows for convenient halting of the request flow for things like + // authentication, CSRF protection, etc. if ( ! is_null($response) and $override) { return $response;