From 8ff757f6dfd4f8b3c7ab038f31fe16600a64a23d Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 20 May 2014 23:29:13 +0000 Subject: [PATCH] Inline\PieChart: code style --- library/Icinga/Chart/Inline/PieChart.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/library/Icinga/Chart/Inline/PieChart.php b/library/Icinga/Chart/Inline/PieChart.php index 369ae6b9b..845702e24 100644 --- a/library/Icinga/Chart/Inline/PieChart.php +++ b/library/Icinga/Chart/Inline/PieChart.php @@ -37,7 +37,9 @@ use Exception; /** * Draw an inline pie-chart directly from the available request parameters. */ -class PieChart extends Inline { +class PieChart extends Inline +{ + public function render($output = true) { $pie = new PieChartRenderer(); @@ -55,7 +57,7 @@ class PieChart extends Inline { public function toPng() { - if (! class_exists('Imagick')) { + if (! class_exists('Imagick')) { // TODO: This is quick & dirty. 404? throw new Exception('Cannot render PNGs without Imagick'); } @@ -65,4 +67,4 @@ class PieChart extends Inline { $image->resizeImage($this->width, $this->height, imagick::FILTER_LANCZOS, 1); echo $image; } -} \ No newline at end of file +}