From 3ea39ad417a64f3284474c731572be535f10e37f Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 20 Apr 2018 15:22:45 -0400 Subject: [PATCH] whitespace --- web/includes/functions.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/includes/functions.php b/web/includes/functions.php index 64d6ce29b..181554435 100644 --- a/web/includes/functions.php +++ b/web/includes/functions.php @@ -975,7 +975,7 @@ function parseSort( $saveToSession=false, $querySep='&' ) { } } -function parseFilter( &$filter, $saveToSession=false, $querySep='&' ) { +function parseFilter(&$filter, $saveToSession=false, $querySep='&') { $filter['query'] = ''; $filter['sql'] = ''; $filter['fields'] = ''; @@ -993,7 +993,7 @@ function parseFilter( &$filter, $saveToSession=false, $querySep='&' ) { } if ( isset($terms[$i]['obr']) ) { $filter['query'] .= $querySep.urlencode("filter[Query][terms][$i][obr]").'='.urlencode($terms[$i]['obr']); - $filter['sql'] .= ' '.str_repeat( '(', $terms[$i]['obr'] ).' '; + $filter['sql'] .= ' '.str_repeat('(', $terms[$i]['obr']).' '; $filter['fields'] .= "\n"; } if ( isset($terms[$i]['attr']) ) { @@ -1001,7 +1001,7 @@ function parseFilter( &$filter, $saveToSession=false, $querySep='&' ) { $filter['fields'] .= "\n"; switch ( $terms[$i]['attr'] ) { case 'MonitorName': - $filter['sql'] .= 'M.'.preg_replace( '/^Monitor/', '', $terms[$i]['attr'] ); + $filter['sql'] .= 'M.'.preg_replace('/^Monitor/', '', $terms[$i]['attr']); break; case 'ServerId': $filter['sql'] .= 'M.ServerId'; @@ -1068,7 +1068,7 @@ function parseFilter( &$filter, $saveToSession=false, $querySep='&' ) { for ( $j = 0; $j < count($terms); $j++ ) { if ( isset($terms[$j]['attr']) and $terms[$j]['attr'] == 'StorageId' and isset($terms[$j]['val']) ) { $StorageArea = new Storage($terms[$j]['val']); - break; + break; } } // end foreach remaining term if ( ! $StorageArea ) $StorageArea = new Storage();