Fix coding style part 2

This commit is contained in:
Job Snijders
2015-07-15 11:04:22 +02:00
parent ad9590df9b
commit d8693f05ae
733 changed files with 37338 additions and 33926 deletions
+3 -6
View File
@@ -2,8 +2,7 @@
foreach ($vars as $var => $value) {
if ($value != '') {
switch ($var)
{
switch ($var) {
case 'name':
$where .= " AND `$var` = ?";
$param[] = $value;
@@ -26,8 +25,7 @@ foreach (dbFetchRows("SELECT * FROM `packages` WHERE 1 $where GROUP BY `name`",
foreach ($entry['blah'] as $version => $bleu) {
$content = '<div style="width: 800px;">';
foreach ($bleu as $build => $bloo)
{
foreach ($bleu as $build => $bloo) {
if ($build) {
$dbuild = '-'.$build;
}
@@ -36,8 +34,7 @@ foreach (dbFetchRows("SELECT * FROM `packages` WHERE 1 $where GROUP BY `name`",
}
$content .= '<div style="background-color: #eeeeee; margin: 5px;"><span style="font-weight: bold; ">'.$version.$dbuild.'</span>';
foreach ($bloo as $device_id => $no)
{
foreach ($bloo as $device_id => $no) {
$this_device = device_by_id_cache($device_id);
$content .= '<span style="background-color: #f5f5f5; margin: 5px;">'.$this_device['hostname'].'</span> ';
}