diff options
author | David King <imkingdavid@gmail.com> | 2012-10-20 10:23:04 -0400 |
---|---|---|
committer | Igor Wiedler <igor@wiedler.ch> | 2012-11-10 11:40:09 +0100 |
commit | 44ba84087755b66a2ce5bed06bd8558628239ab3 (patch) | |
tree | 4787bbfd00922e3f9bcb3a54c87fc0449a82200c | |
parent | f48709f5bb8fb1b916d308e3b4bb06bc96d08611 (diff) | |
download | forums-44ba84087755b66a2ce5bed06bd8558628239ab3.tar forums-44ba84087755b66a2ce5bed06bd8558628239ab3.tar.gz forums-44ba84087755b66a2ce5bed06bd8558628239ab3.tar.bz2 forums-44ba84087755b66a2ce5bed06bd8558628239ab3.tar.xz forums-44ba84087755b66a2ce5bed06bd8558628239ab3.zip |
[feature/compiled-dic] Split if() over multiple lines for improved readability
PHPBB3-11152
-rw-r--r-- | phpBB/includes/cache/driver/file.php | 6 | ||||
-rw-r--r-- | phpBB/includes/cache/driver/memory.php | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/phpBB/includes/cache/driver/file.php b/phpBB/includes/cache/driver/file.php index b8876b03b4..b20c0064ea 100644 --- a/phpBB/includes/cache/driver/file.php +++ b/phpBB/includes/cache/driver/file.php @@ -214,7 +214,11 @@ class phpbb_cache_driver_file extends phpbb_cache_driver_base while (($entry = readdir($dir)) !== false) { - if (strpos($entry, 'container') !== 0 && strpos($entry, 'sql_') !== 0 && strpos($entry, 'data_') !== 0 && strpos($entry, 'ctpl_') !== 0 && strpos($entry, 'tpl_') !== 0) + if (strpos($entry, 'container') !== 0 && + strpos($entry, 'sql_') !== 0 && + strpos($entry, 'data_') !== 0 && + strpos($entry, 'ctpl_') !== 0 && + strpos($entry, 'tpl_') !== 0) { continue; } diff --git a/phpBB/includes/cache/driver/memory.php b/phpBB/includes/cache/driver/memory.php index 9ee32fff28..98ac02b161 100644 --- a/phpBB/includes/cache/driver/memory.php +++ b/phpBB/includes/cache/driver/memory.php @@ -162,7 +162,11 @@ abstract class phpbb_cache_driver_memory extends phpbb_cache_driver_base while (($entry = readdir($dir)) !== false) { - if (strpos($entry, 'container') !== 0 && strpos($entry, 'sql_') !== 0 && strpos($entry, 'data_') !== 0 && strpos($entry, 'ctpl_') !== 0 && strpos($entry, 'tpl_') !== 0) + if (strpos($entry, 'container') !== 0 && + strpos($entry, 'sql_') !== 0 && + strpos($entry, 'data_') !== 0 && + strpos($entry, 'ctpl_') !== 0 && + strpos($entry, 'tpl_') !== 0) { continue; } |