Update code in includes to be PSR-2 compliant (#4220)

refactor: Update code in /includes to be psr2 compliant #4220
This commit is contained in:
Tony Murray
2016-08-28 12:32:58 -05:00
committed by Neil Lathwood
parent 3c0fcdd46b
commit 9284bc60ff
373 changed files with 3509 additions and 3498 deletions

View File

@@ -44,8 +44,7 @@ if (!empty($agent_data['app'][$name]) && $app_id > 0) {
if (!empty($matches)) {
if ($matches[1] == 'default') {
continue;
}
else {
} else {
$view = $matches[1];
}
}
@@ -63,8 +62,7 @@ if (!empty($agent_data['app'][$name]) && $app_id > 0) {
$item = str_replace(' ', '_', strtolower($matches[2]));
if (!empty($view)) {
$bind_parsed[$prefix][$view][$item] = $cnt;
}
else {
} else {
$bind_parsed[$prefix][$item] = $cnt;
}
}
@@ -99,5 +97,4 @@ if (!empty($agent_data['app'][$name]) && $app_id > 0) {
$tags = compact('name', 'app_id', 'rrd_name', 'rrd_def');
data_update($device, 'app', $tags, $fields);
}//end if