summaryrefslogtreecommitdiffstats
path: root/src/driver/svg.php
diff options
context:
space:
mode:
authorDerick Rethans <github@derickrethans.nl>2006-09-25 08:11:08 +0000
committerDerick Rethans <github@derickrethans.nl>2006-09-25 08:11:08 +0000
commitcefc1cb0ecb1fa1a794eaa51e456a5329071257d (patch)
treee44508b84b22fc3b3737a04473a59aeafa2bb622 /src/driver/svg.php
parent39cc6e9237085d0034b4ec35ce3f5abaedfaadf6 (diff)
downloadzetacomponents-graph-cefc1cb0ecb1fa1a794eaa51e456a5329071257d.zip
zetacomponents-graph-cefc1cb0ecb1fa1a794eaa51e456a5329071257d.tar.gz
- Fixed CS issues.
Diffstat (limited to 'src/driver/svg.php')
-rw-r--r--src/driver/svg.php13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/driver/svg.php b/src/driver/svg.php
index 41fa59e..dea6914 100644
--- a/src/driver/svg.php
+++ b/src/driver/svg.php
@@ -452,7 +452,8 @@ class ezcGraphSvgDriver extends ezcGraphDriver
// Check width of last line
$strWidth = $this->getTextWidth( implode( ' ', $selectedLine ), $size );
- if ( $strWidth > $width ) {
+ if ( $strWidth > $width )
+ {
return false;
}
@@ -752,7 +753,7 @@ class ezcGraphSvgDriver extends ezcGraphDriver
$Yend = $center->y + $this->options->graphOffset->y + $height * sin( ( ( $endAngle ) / 180 ) * M_PI );
$arc = $this->dom->createElement( 'path' );
- $arc->setAttribute('d', sprintf('M %.2f,%.2f L %.2f,%.2f A %.2f,%.2f 0 %d,1 %.2f,%.2f z',
+ $arc->setAttribute( 'd', sprintf( 'M %.2f,%.2f L %.2f,%.2f A %.2f,%.2f 0 %d,1 %.2f,%.2f z',
// Middle
$center->x + $this->options->graphOffset->x, $center->y + $this->options->graphOffset->y,
// Startpoint
@@ -828,7 +829,7 @@ class ezcGraphSvgDriver extends ezcGraphDriver
if ( $filled === true )
{
$arc = $this->dom->createElement( 'path' );
- $arc->setAttribute('d', sprintf( 'M %.2f,%.2f A %.2f,%.2f 0 %d,0 %.2f,%.2f L %.2f,%.2f A %.2f,%2f 0 %d,1 %.2f,%.2f z',
+ $arc->setAttribute( 'd', sprintf( 'M %.2f,%.2f A %.2f,%.2f 0 %d,0 %.2f,%.2f L %.2f,%.2f A %.2f,%2f 0 %d,1 %.2f,%.2f z',
// Endpoint low
$Xend, $Yend + $size,
// Radius
@@ -851,7 +852,7 @@ class ezcGraphSvgDriver extends ezcGraphDriver
else
{
$arc = $this->dom->createElement( 'path' );
- $arc->setAttribute('d', sprintf( 'M %.2f,%.2f A %.2f,%.2f 0 %d,1 %.2f,%.2f',
+ $arc->setAttribute( 'd', sprintf( 'M %.2f,%.2f A %.2f,%.2f 0 %d,1 %.2f,%.2f',
// Startpoint
$Xstart, $Ystart,
// Radius
@@ -889,7 +890,7 @@ class ezcGraphSvgDriver extends ezcGraphDriver
);
$arc = $this->dom->createElement( 'path' );
- $arc->setAttribute('d', sprintf( 'M %.2f,%.2f A %.2f,%.2f 0 %d,0 %.2f,%.2f L %.2f,%.2f A %.2f,%2f 0 %d,1 %.2f,%.2f z',
+ $arc->setAttribute( 'd', sprintf( 'M %.2f,%.2f A %.2f,%.2f 0 %d,0 %.2f,%.2f L %.2f,%.2f A %.2f,%2f 0 %d,1 %.2f,%.2f z',
// Endpoint low
$Xend, $Yend + $size,
// Radius
@@ -934,7 +935,7 @@ class ezcGraphSvgDriver extends ezcGraphDriver
{
$this->createDocument();
- $ellipse = $this->dom->createElement('ellipse');
+ $ellipse = $this->dom->createElement( 'ellipse' );
$ellipse->setAttribute( 'cx', $center->x + $this->options->graphOffset->x );
$ellipse->setAttribute( 'cy', $center->y + $this->options->graphOffset->y );
$ellipse->setAttribute( 'rx', $width / 2 );
OpenPOWER on IntegriCloud