Update php-codesniffer (#11368)

* PHPCS 3.5+

* Fix newly detected style issues
This commit is contained in:
Tony Murray
2020-04-03 08:41:24 -05:00
committed by GitHub
parent 1445263290
commit 217969e140
112 changed files with 774 additions and 810 deletions

View File

@@ -1,6 +1,6 @@
<?php
//Workaround for bad behaviour of the SNMP engine in EDS device.
//a ".0" is added in snmpget compared to snmpwalk of the same table.
//a ".0" is added in snmpget compared to snmpwalk of the same table.
if (!array_key_exists($sensor['sensor_oid'], $snmp_data) && array_key_exists($sensor['sensor_oid'].".0", $snmp_data)) {
$sensor_value = trim(str_replace('"', '', $snmp_data[$sensor['sensor_oid'].".0"]));
}