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
@@ -6,7 +6,7 @@ if ($device['os_group'] == 'cisco') {
$oids = array();
echo 'Caching OIDs:';
if (!is_array($entity_array)) {
if (!is_array($entity_array)) {
$entity_array = array();
echo ' entPhysicalDescr';
$entity_array = snmpwalk_cache_multi_oid($device, 'entPhysicalDescr', $entity_array, 'CISCO-ENTITY-SENSOR-MIB');
@@ -49,8 +49,7 @@ if ($device['os_group'] == 'cisco') {
$entitysensor['dBm'] = 'dbm';
if (is_array($oids)) {
foreach ($oids as $index => $entry)
{
foreach ($oids as $index => $entry) {
// echo("[" . $entry['entSensorType'] . "|" . $entry['entSensorValue']. "|" . $index . "]");
if ($entitysensor[$entry['entSensorType']] && is_numeric($entry['entSensorValue']) && is_numeric($index)) {
$entPhysicalIndex = $index;