Commit ae9824f8 authored by Taylor Otwell's avatar Taylor Otwell

Remove comment bloat from Route\Filter class.

parent a5af988d
...@@ -24,9 +24,6 @@ class Filter { ...@@ -24,9 +24,6 @@ class Filter {
static::$filters = require APP_PATH.'filters'.EXT; static::$filters = require APP_PATH.'filters'.EXT;
} }
// --------------------------------------------------------------
// Filters can be comma-delimited, so spin through each one.
// --------------------------------------------------------------
foreach (explode(', ', $filters) as $filter) foreach (explode(', ', $filters) as $filter)
{ {
if ( ! isset(static::$filters[$filter])) if ( ! isset(static::$filters[$filter]))
...@@ -36,13 +33,9 @@ class Filter { ...@@ -36,13 +33,9 @@ class Filter {
$response = call_user_func_array(static::$filters[$filter], $parameters); $response = call_user_func_array(static::$filters[$filter], $parameters);
// -------------------------------------------------------------- // If overriding is set to true and the filter returned a response, return that response.
// If overriding is set to true and the filter returned a // Overriding allows for convenient halting of the request flow for things like
// response, return that response. // authentication, CSRF protection, etc.
//
// Overriding allows for convenient halting of the request
// flow for things like authentication, CSRF protection, etc.
// --------------------------------------------------------------
if ( ! is_null($response) and $override) if ( ! is_null($response) and $override)
{ {
return $response; return $response;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment