diff options
author | Derick Rethans <github@derickrethans.nl> | 2006-09-28 08:46:30 +0000 |
---|---|---|
committer | Derick Rethans <github@derickrethans.nl> | 2006-09-28 08:46:30 +0000 |
commit | 1e5d8da316521ea137a3bdce6fbcc88bd5a6342d (patch) | |
tree | 0be6406af840844eb2dbfc1d0d9b858a585043b8 /src/driver/svg.php | |
parent | 6ccb26077d1b41990861e40fceb7269775c27602 (diff) | |
download | zetacomponents-graph-1e5d8da316521ea137a3bdce6fbcc88bd5a6342d.zip zetacomponents-graph-1e5d8da316521ea137a3bdce6fbcc88bd5a6342d.tar.gz |
- Tabs to spaces
Diffstat (limited to 'src/driver/svg.php')
-rw-r--r-- | src/driver/svg.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/driver/svg.php b/src/driver/svg.php index dea6914..8830dfa 100644 --- a/src/driver/svg.php +++ b/src/driver/svg.php @@ -319,20 +319,20 @@ class ezcGraphSvgDriver extends ezcGraphDriver { $this->createDocument(); - $lastPoint = end( $points ); + $lastPoint = end( $points ); $pointString = sprintf( ' M %.4f,%.4f', $lastPoint->x + $this->options->graphOffset->x, $lastPoint->y + $this->options->graphOffset->y ); - foreach ( $points as $point ) + foreach ( $points as $point ) { $pointString .= sprintf( ' L %.4f,%.4f', $point->x + $this->options->graphOffset->x, $point->y + $this->options->graphOffset->y ); } - $pointString .= ' z '; + $pointString .= ' z '; $path = $this->dom->createElement( 'path' ); $path->setAttribute( 'd', $pointString ); @@ -342,7 +342,7 @@ class ezcGraphSvgDriver extends ezcGraphDriver $this->getStyle( $color, $filled, $thickness ) ); $path->setAttribute( 'id', $id = ( $this->options->idPrefix . 'Polygon_' . ++$this->elementID ) ); - $this->elements->appendChild( $path ); + $this->elements->appendChild( $path ); return $id; } |