From ff1d2e4fed398cc4260ffc131e2fa4e3a24b7a49 Mon Sep 17 00:00:00 2001 From: Matthias Jentsch Date: Tue, 26 Aug 2014 11:40:48 +0200 Subject: [PATCH] Fix coding style --- library/Icinga/Chart/Primitive/PieSlice.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/library/Icinga/Chart/Primitive/PieSlice.php b/library/Icinga/Chart/Primitive/PieSlice.php index c7a6a06fa..90572a641 100644 --- a/library/Icinga/Chart/Primitive/PieSlice.php +++ b/library/Icinga/Chart/Primitive/PieSlice.php @@ -108,12 +108,11 @@ class PieSlice extends Animatable implements Drawable $xStart = $x + ($r * sin($this->startRadian)); $yStart = $y - ($r * cos($this->startRadian)); - if($this->endRadian - $this->startRadian == 2*M_PI) { + if ($this->endRadian - $this->startRadian == 2*M_PI) { // To draw a full circle, adjust arc endpoint by a small (unvisible) value $this->endRadian -= 0.001; - $pathString = 'M '. Format::formatSVGNumber($xStart) . ' ' . Format::formatSVGNumber($yStart); - } - else { + $pathString = 'M ' . Format::formatSVGNumber($xStart) . ' ' . Format::formatSVGNumber($yStart); + } else { // Start at the center of the pieslice $pathString = 'M ' . $x . ' ' . $y; // Draw a straight line to the upper part of the arc