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,24 @@
<?php
$sql = "SELECT * FROM `applications` WHERE `device_id` = '".$device['device_id']."'";
if ($debug) { echo($sql."\n"); }
$app_rows = dbFetchRows("SELECT * FROM `applications` WHERE `device_id` = ?", array($device['device_id']));
if (count($app_rows))
{
echo('Applications: ');
foreach ($app_rows as $app)
{
$app_include = $config['install_dir'].'/includes/polling/applications/'.$app['app_type'].'.inc.php';
if (is_file($app_include))
{
include($app_include);
}
else
{
echo($app['app_type'].' include missing! ');
}
}
echo("\n");
if ($debug) {
echo $sql."\n";
}
?>
$app_rows = dbFetchRows('SELECT * FROM `applications` WHERE `device_id` = ?', array($device['device_id']));
if (count($app_rows)) {
echo 'Applications: ';
foreach ($app_rows as $app)
{
$app_include = $config['install_dir'].'/includes/polling/applications/'.$app['app_type'].'.inc.php';
if (is_file($app_include)) {
include $app_include;
}
else {
echo $app['app_type'].' include missing! ';
}
}
echo "\n";
}