Inline\PieChart: code style

This commit is contained in:
Thomas Gelf 2014-05-20 23:29:13 +00:00
parent cf42ffbafa
commit 8ff757f6df

View File

@ -37,7 +37,9 @@ use Exception;
/** /**
* Draw an inline pie-chart directly from the available request parameters. * Draw an inline pie-chart directly from the available request parameters.
*/ */
class PieChart extends Inline { class PieChart extends Inline
{
public function render($output = true) public function render($output = true)
{ {
$pie = new PieChartRenderer(); $pie = new PieChartRenderer();
@ -55,7 +57,7 @@ class PieChart extends Inline {
public function toPng() public function toPng()
{ {
if (! class_exists('Imagick')) { if (! class_exists('Imagick')) {
// TODO: This is quick & dirty. 404? // TODO: This is quick & dirty. 404?
throw new Exception('Cannot render PNGs without Imagick'); throw new Exception('Cannot render PNGs without Imagick');
} }