readability

This commit is contained in:
Joshua Seigler 2016-06-26 11:53:01 -04:00
parent b6cbca8013
commit e23b4a5526

View file

@ -44,8 +44,8 @@ foreach ($last24h as $datum) {
} }
$previousValue = $thisY; $previousValue = $thisY;
} }
end($chartData); // already at end, not needed
$yRange = $yMax - $yMin; $yRange = $yMax - $yMin;
end($chartData);
$xMax = key($chartData); $xMax = key($chartData);
reset($chartData); reset($chartData);
$xMin = key($chartData); $xMin = key($chartData);