Style cleanup in hiveos file (#9440)

Fix code style check for https://github.com/librenms/librenms/pull/9438

DO NOT DELETE THIS TEXT

#### Please note

> Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting.

- [x] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/)

#### Testers

If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
After you are done testing, you can remove the changes with `./scripts/github-remove`.  If there are schema changes, you can ask on discord how to revert.
This commit is contained in:
Stefan
2018-11-10 22:04:21 +01:00
committed by Neil Lathwood
parent f439eb4f1d
commit 9c7d5ed5ba

View File

@ -21,9 +21,9 @@
* @author https://github.com/theherodied/
*/
$data = snmp_get_multi_oid($device,'ahSystemSerial.0 ahDeviceMode.0 ahFirmwareVersion.0','-OQUs','AH-SYSTEM-MIB');
$data = snmp_get_multi_oid($device, 'ahSystemSerial.0 ahDeviceMode.0 ahFirmwareVersion.0', '-OQUs', 'AH-SYSTEM-MIB');
$hardware = $data['ahDeviceMode.0'];
$version2 = $data['ahFirmwareVersion.0'];
// Version has 'HiveOS ' included. We want to remove it so OS doesn't show HiveOS twice.
$version = preg_replace('/^HiveOS /','',$version2);
$version = preg_replace('/^HiveOS /', '', $version2);
$serial = $data['ahSystemSerial.0'];