Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
ae9824f8
Commit
ae9824f8
authored
Jul 07, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove comment bloat from Route\Filter class.
parent
a5af988d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
+3
-10
filter.php
system/route/filter.php
+3
-10
No files found.
system/route/filter.php
View file @
ae9824f8
...
...
@@ -24,9 +24,6 @@ class Filter {
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 @@ class Filter {
$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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment