Update code in includes to be PSR-2 compliant (#4220)

refactor: Update code in /includes to be psr2 compliant #4220
This commit is contained in:
Tony Murray
2016-08-28 12:32:58 -05:00
committed by Neil Lathwood
parent 3c0fcdd46b
commit 9284bc60ff
373 changed files with 3509 additions and 3498 deletions

View File

@@ -24,8 +24,7 @@ if (is_array($eql_storage)) {
$used = $storage['eqliscsiVolumeStatusAllocatedSpace'] * $units;
if (is_int($index)) {
discover_storage($valid_storage, $device, $index, $fstype, 'eql-storage', $descr, $size, $units, $used);
}
else {
} else {
// Trying to search the last '.' and take something after it as index
$arrindex = explode(".", $index);
$newindex = (int)(end($arrindex))+0;

View File

@@ -15,20 +15,18 @@ if (is_array($hrstorage_array)) {
switch ($fstype) {
case 'hrStorageVirtualMemory':
case 'hrStorageRam';
case 'hrStorageOther';
case 'nwhrStorageDOSMemory';
case 'nwhrStorageMemoryAlloc';
case 'nwhrStorageMemoryPermanent';
case 'nwhrStorageMemoryAlloc';
case 'nwhrStorageCacheBuffers';
case 'nwhrStorageCacheMovable';
case 'nwhrStorageCacheNonMovable';
case 'nwhrStorageCodeAndDataMemory';
case 'nwhrStorageDOSMemory';
case 'nwhrStorageIOEngineMemory';
case 'nwhrStorageMSEngineMemory';
case 'nwhrStorageUnclaimedMemory';
case 'hrStorageRam':
case 'hrStorageOther':
case 'nwhrStorageDOSMemory':
case 'nwhrStorageMemoryAlloc':
case 'nwhrStorageMemoryPermanent':
case 'nwhrStorageCacheBuffers':
case 'nwhrStorageCacheMovable':
case 'nwhrStorageCacheNonMovable':
case 'nwhrStorageCodeAndDataMemory':
case 'nwhrStorageIOEngineMemory':
case 'nwhrStorageMSEngineMemory':
case 'nwhrStorageUnclaimedMemory':
$deny = 1;
break;
}

View File

@@ -11,8 +11,7 @@ if (is_array($netapp_storage)) {
if (isset($storage['df64TotalKBytes']) && is_numeric($storage['df64TotalKBytes'])) {
$size = ($storage['df64TotalKBytes'] * $units);
$used = ($storage['df64UsedKBytes'] * $units);
}
else {
} else {
$size = ($storage['dfKBytesTotal'] * $units);
$used = ($storage['dfKBytesUsed'] * $units);
}