mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[feature/compiled-dic] Split if() over multiple lines for improved readability
PHPBB3-11152
This commit is contained in:
parent
f48709f5bb
commit
44ba840877
2 changed files with 10 additions and 2 deletions
6
phpBB/includes/cache/driver/file.php
vendored
6
phpBB/includes/cache/driver/file.php
vendored
|
@ -214,7 +214,11 @@ class phpbb_cache_driver_file extends phpbb_cache_driver_base
|
||||||
|
|
||||||
while (($entry = readdir($dir)) !== false)
|
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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
6
phpBB/includes/cache/driver/memory.php
vendored
6
phpBB/includes/cache/driver/memory.php
vendored
|
@ -162,7 +162,11 @@ abstract class phpbb_cache_driver_memory extends phpbb_cache_driver_base
|
||||||
|
|
||||||
while (($entry = readdir($dir)) !== false)
|
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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue