diff --git a/library/Icinga/Chart/Render/RenderContext.php b/library/Icinga/Chart/Render/RenderContext.php index 62150a42a..ea8d97332 100644 --- a/library/Icinga/Chart/Render/RenderContext.php +++ b/library/Icinga/Chart/Render/RenderContext.php @@ -92,9 +92,9 @@ class RenderContext { $this->document = $document; if ($width > $height) { - $this->xratio = $width/$height; - } elseif ($height < $width) { - $this->yratio = $width/$height; + $this->xratio = $width / $height; + } elseif ($height > $width) { + $this->yratio = $height / $width; } }