mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 23:34:08 +02:00
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.
|
* 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');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user