Inline\PieChart: code style

This commit is contained in:
Thomas Gelf 2014-05-20 23:29:13 +00:00
parent cf42ffbafa
commit 8ff757f6df
1 changed files with 5 additions and 3 deletions

View File

@ -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;
}
}
}