Inline\PieChart: code style
This commit is contained in:
parent
cf42ffbafa
commit
8ff757f6df
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue