Simplify some conditions and ternary expressions
This commit is contained in:
parent
12bf085c57
commit
dfa808a955
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -543,7 +543,7 @@ class Properties
|
|||
|
||||
break;
|
||||
case 'bool': // Boolean
|
||||
return ($propertyValue == 'true') ? true : false;
|
||||
return $propertyValue == 'true';
|
||||
|
||||
break;
|
||||
case 'cy': // Currency
|
||||
|
|
Loading…
Reference in New Issue