Simplify some conditions and ternary expressions

This commit is contained in:
Gabriel Caruso 2018-11-19 01:46:44 -02:00 committed by Adrien Crivelli
parent 12bf085c57
commit dfa808a955
2 changed files with 2 additions and 2 deletions

View File

@ -401,7 +401,7 @@ class JpGraph implements IRenderer
$seriesPlots[] = $seriesPlot;
}
// Reverse the plot order for bar rather than column chart
if (($rotation == 'bar') && (!($grouping == 'percentStacked'))) {
if (($rotation == 'bar') && ($grouping != 'percentStacked')) {
$seriesPlots = array_reverse($seriesPlots);
}

View File

@ -543,7 +543,7 @@ class Properties
break;
case 'bool': // Boolean
return ($propertyValue == 'true') ? true : false;
return $propertyValue == 'true';
break;
case 'cy': // Currency