Apply "Squiz" code style on old (pre-2014) files

This commit is contained in:
Job Snijders
2015-07-10 13:36:21 +02:00
parent e4f4eb44dc
commit ebd0f6fc35
539 changed files with 13591 additions and 13223 deletions

View File

@@ -1,26 +1,22 @@
<?php
// This is an include so that we don't lose variable scope.
if ($include_dir_regexp == '' || !isset($include_dir_regexp)) {
$include_dir_regexp = '/\.inc\.php$/';
}
if ($include_dir_regexp == "" || !isset($include_dir_regexp))
{
$include_dir_regexp = "/\.inc\.php$/";
}
if ($handle = opendir($config['install_dir'].'/'.$include_dir)) {
while (false !== ($file = readdir($handle))) {
if (filetype($config['install_dir'].'/'.$include_dir.'/'.$file) == 'file' && preg_match($include_dir_regexp, $file)) {
if ($debug) {
echo 'Including: '.$config['install_dir'].'/'.$include_dir.'/'.$file."\n";
}
if ($handle = opendir($config['install_dir'] . '/' . $include_dir))
{
while (false !== ($file = readdir($handle)))
{
if (filetype($config['install_dir'] . '/' . $include_dir . '/' . $file) == 'file' && preg_match($include_dir_regexp, $file))
{
if ($debug) { echo("Including: " . $config['install_dir'] . '/' . $include_dir . '/' . $file . "\n"); }
include($config['install_dir'] . '/' . $include_dir . '/' . $file);
}
include $config['install_dir'].'/'.$include_dir.'/'.$file;
}
}
closedir($handle);
}
}
unset($include_dir_regexp, $include_dir);
?>
unset($include_dir_regexp, $include_dir);