fix style issues (#10057)

This commit is contained in:
Tony Murray 2019-04-01 20:03:54 -05:00 committed by GitHub
parent 7615dd5b39
commit a3ef7c3d4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 14 deletions

View File

@ -26,9 +26,9 @@
if ($device['os'] === 'hikvision-cam') {
echo 'hikvision-cam:';
$index = 0;
$type = 'hikvision-cam';
$descr = 'Memory';
$precision = '1';
discover_mempool($valid_mempool, $device, $index, $type, $descr, $precision, null, null);
$index = 0;
$type = 'hikvision-cam';
$descr = 'Memory';
$precision = '1';
discover_mempool($valid_mempool, $device, $index, $type, $descr, $precision, null, null);
}

View File

@ -26,9 +26,9 @@
if ($device['os'] === 'hikvision-nvr') {
echo 'hikvision-nvr:';
$index = 0;
$type = 'hikvision-nvr';
$descr = 'Memory';
$precision = '1';
discover_mempool($valid_mempool, $device, $index, $type, $descr, $precision, null, null);
$index = 0;
$type = 'hikvision-nvr';
$descr = 'Memory';
$precision = '1';
discover_mempool($valid_mempool, $device, $index, $type, $descr, $precision, null, null);
}

View File

@ -3,7 +3,7 @@
// DELLEMC-OS10-PRODUCTS-MIB
$dell_os10_hardware = snmp_get_multi($device, ['os10ChassisType.1', 'os10ChassisHwRev.1', 'os10ChassisServiceTag.1', 'os10ChassisExpServiceCode.1', 'os10ChassisProductSN.1'], '-OQUs', 'DELLEMC-OS10-CHASSIS-MIB');
$hardware = $dell_os10_hardware[1]['os10ChassisType'];
$version = $dell_os10_hardware[1]['os10ChassisHwRev'];
$serial = $dell_os10_hardware[1]['os10ChassisProductSN'];
$features = $dell_os10_hardware[1]['os10ChassisServiceTag'] . '/' . $dell_os10_hardware[1]['os10ChassisExpServiceCode'];
$hardware = $dell_os10_hardware[1]['os10ChassisType'];
$version = $dell_os10_hardware[1]['os10ChassisHwRev'];
$serial = $dell_os10_hardware[1]['os10ChassisProductSN'];
$features = $dell_os10_hardware[1]['os10ChassisServiceTag'] . '/' . $dell_os10_hardware[1]['os10ChassisExpServiceCode'];

View File

@ -8,6 +8,7 @@
<exclude-pattern>/html/plugins/*</exclude-pattern>
<exclude-pattern>/config.php</exclude-pattern>
<exclude-pattern>/_ide_helper.php</exclude-pattern>
<exclude-pattern>/_ide_helper_models.php</exclude-pattern>
<rule ref="PSR2" >
<exclude name="Generic.Files.LineLength"/>
</rule>