Skip to content

Commit

Permalink
Update as per sonarcloud analysis.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpwhite4 committed Mar 17, 2020
1 parent 8a11da8 commit f63091d
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions classes/DataWarehouse/Visualization/HighChartTimeseries2.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,23 +66,6 @@ public function __construct(
$this->_queryType = 'timeseries';
}

//-------------------------------------------------
// useMean( $stat )
// Based on inspection of the Statistic Alias for the dataset,
// should the mean of the values be computed for the remainder set?
//
// @param is $dataObj->getStatistic()->getAlias(); or $data_description->metric
//-------------------------------------------------
private function useMean($stat) {
$retVal
= strpos($stat, 'avg_') !== false
|| strpos($stat, 'count') !== false
|| strpos($stat, 'utilization') !== false
|| strpos($stat, 'rate') !== false
|| strpos($stat, 'expansion_factor') !== false;
return $retVal;
}

// ---------------------------------------------------------
// configure()
//
Expand Down Expand Up @@ -409,7 +392,7 @@ public function configure(
// operate on each yAxisDataObject, a SimpleTimeseriesData object
// @refer HighChart2 line 866

foreach($yAxisDataObjectsArray as $yIndex => $yAxisDataObject)
foreach($yAxisDataObjectsArray as $yAxisDataObject)
{
if( $yAxisDataObject != null)
{
Expand Down

0 comments on commit f63091d

Please sign in to comment.