mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	Apply "Squiz" code style on old (pre-2014) files
This commit is contained in:
		@@ -1,14 +1,11 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
# MG-SNMP-UPS-MIB::upsmgIdentFamilyName.0 = STRING: "PULSAR M"
 | 
			
		||||
# MG-SNMP-UPS-MIB::upsmgIdentModelName.0 = STRING: "2200"
 | 
			
		||||
# MG-SNMP-UPS-MIB::upsmgIdentSerialNumber.0 = STRING: "AQ1H01024"
 | 
			
		||||
// MG-SNMP-UPS-MIB::upsmgIdentFamilyName.0 = STRING: "PULSAR M"
 | 
			
		||||
// MG-SNMP-UPS-MIB::upsmgIdentModelName.0 = STRING: "2200"
 | 
			
		||||
// MG-SNMP-UPS-MIB::upsmgIdentSerialNumber.0 = STRING: "AQ1H01024"
 | 
			
		||||
$version = trim(snmp_get($device, 'upsmgIdentFirmwareVersion.0', '-OQv', 'MG-SNMP-UPS-MIB'), '" ');
 | 
			
		||||
 | 
			
		||||
$version = trim(snmp_get($device, "upsmgIdentFirmwareVersion.0", "-OQv", "MG-SNMP-UPS-MIB"),'" ');
 | 
			
		||||
$hardware  = trim(snmp_get($device, 'upsmgIdentFamilyName.0', '-OQv', 'MG-SNMP-UPS-MIB'), '" ');
 | 
			
		||||
$hardware .= ' '.trim(snmp_get($device, 'upsmgIdentModelName.0', '-OQv', 'MG-SNMP-UPS-MIB'), '" ');
 | 
			
		||||
 | 
			
		||||
$hardware = trim(snmp_get($device,"upsmgIdentFamilyName.0","-OQv","MG-SNMP-UPS-MIB"),'" ');
 | 
			
		||||
$hardware .= ' ' . trim(snmp_get($device,"upsmgIdentModelName.0","-OQv","MG-SNMP-UPS-MIB"),'" ');
 | 
			
		||||
 | 
			
		||||
$serial = trim(snmp_get($device,"upsmgIdentSerialNumber.0","-OQv","MG-SNMP-UPS-MIB"),'" ');
 | 
			
		||||
 | 
			
		||||
?>
 | 
			
		||||
$serial = trim(snmp_get($device, 'upsmgIdentSerialNumber.0', '-OQv', 'MG-SNMP-UPS-MIB'), '" ');
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user