mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix style issues (#10057)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
@@ -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);
|
||||
}
|
||||
|
@@ -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'];
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user