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;
|
$seriesPlots[] = $seriesPlot;
|
||||||
}
|
}
|
||||||
// Reverse the plot order for bar rather than column chart
|
// Reverse the plot order for bar rather than column chart
|
||||||
if (($rotation == 'bar') && (!($grouping == 'percentStacked'))) {
|
if (($rotation == 'bar') && ($grouping != 'percentStacked')) {
|
||||||
$seriesPlots = array_reverse($seriesPlots);
|
$seriesPlots = array_reverse($seriesPlots);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -543,7 +543,7 @@ class Properties
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case 'bool': // Boolean
|
case 'bool': // Boolean
|
||||||
return ($propertyValue == 'true') ? true : false;
|
return $propertyValue == 'true';
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case 'cy': // Currency
|
case 'cy': // Currency
|
||||||
|
|
Loading…
Reference in New Issue