diff options
| author | uwetews <uwe.tews@googlemail.com> | 2016-02-09 01:27:15 +0100 |
|---|---|---|
| committer | uwetews <uwe.tews@googlemail.com> | 2016-02-09 01:27:15 +0100 |
| commit | b04486a091558a2b1280e3ee7fb90758e9a32230 (patch) | |
| tree | ddb15a12dba78e6873a348acd25f872429e210d2 /libs/sysplugins/smarty_internal_extension_clear.php | |
| parent | c59ca44b9ff62a7f54e30409514834a8529780ca (diff) | |
| download | smarty-b04486a091558a2b1280e3ee7fb90758e9a32230.tar.gz smarty-b04486a091558a2b1280e3ee7fb90758e9a32230.tar.bz2 smarty-b04486a091558a2b1280e3ee7fb90758e9a32230.zip | |
- reformat all code for unique style
Diffstat (limited to 'libs/sysplugins/smarty_internal_extension_clear.php')
| -rw-r--r-- | libs/sysplugins/smarty_internal_extension_clear.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/sysplugins/smarty_internal_extension_clear.php b/libs/sysplugins/smarty_internal_extension_clear.php index df80c752..adfe287c 100644 --- a/libs/sysplugins/smarty_internal_extension_clear.php +++ b/libs/sysplugins/smarty_internal_extension_clear.php @@ -77,13 +77,13 @@ class Smarty_Internal_Extension_Clear $_parts_count = count($_parts); // check name if (isset($resource_name)) { - if ($_parts[$_parts_count - 1] != $_resourcename_parts) { + if ($_parts[ $_parts_count - 1 ] != $_resourcename_parts) { continue; } } // check compile id - if (isset($_compile_id) && (!isset($_parts[$_parts_count - 2 - $_compile_id_offset]) || - $_parts[$_parts_count - 2 - $_compile_id_offset] != $_compile_id) + if (isset($_compile_id) && (!isset($_parts[ $_parts_count - 2 - $_compile_id_offset ]) || + $_parts[ $_parts_count - 2 - $_compile_id_offset ] != $_compile_id) ) { continue; } @@ -96,7 +96,7 @@ class Smarty_Internal_Extension_Clear continue; } for ($i = 0; $i < $_cache_id_parts_count; $i ++) { - if ($_parts[$i] != $_cache_id_parts[$i]) { + if ($_parts[ $i ] != $_cache_id_parts[ $i ]) { continue 2; } } @@ -105,7 +105,7 @@ class Smarty_Internal_Extension_Clear if (isset($exp_time)) { if ($exp_time < 0) { preg_match('#\'cache_lifetime\' =>\s*(\d*)#', file_get_contents($_file), $match); - if ($_time < (@filemtime($_file) + $match[1])) { + if ($_time < (@filemtime($_file) + $match[ 1 ])) { continue; } } else { |
