Fix coding style

This commit is contained in:
Matthias Jentsch 2014-08-26 11:40:48 +02:00 committed by Matthias Jentsch
parent 746f53fd20
commit ff1d2e4fed
1 changed files with 3 additions and 4 deletions

View File

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