Author: Derick Rethans
Date: 2006-09-25 10:11:08 +0200 (Mon, 25 Sep 2006)
New Revision: 3566

Log:
- Fixed CS issues.

Modified:
   trunk/Graph/src/axis/numeric.php
   trunk/Graph/src/charts/pie.php
   trunk/Graph/src/colors/linear_gradient.php
   trunk/Graph/src/colors/radial_gradient.php
   trunk/Graph/src/datasets/base.php
   trunk/Graph/src/driver/gd.php
   trunk/Graph/src/driver/svg.php
   trunk/Graph/src/element/background.php
   trunk/Graph/src/interfaces/element.php
   trunk/Graph/src/math/polynom.php
   trunk/Graph/src/options/font.php
   trunk/Graph/src/renderer/3d.php

Modified: trunk/Graph/src/axis/numeric.php
===================================================================
--- trunk/Graph/src/axis/numeric.php    2006-09-24 20:49:23 UTC (rev 3565)
+++ trunk/Graph/src/axis/numeric.php    2006-09-25 08:11:08 UTC (rev 3566)
@@ -102,12 +102,13 @@
         $sign = $float / $abs;
 
         // Normalize number to a range between 1 and 10
-        $log = (int) round( log10( $abs ), 0);
+        $log = (int) round( log10( $abs ), 0 );
         $abs /= pow( 10, $log );
 
 
         // find next nice number
-        if ( $abs > 5 ) {
+        if ( $abs > 5 )
+        {
             $abs = 10.;
         }
         elseif ( $abs > 2.5 )

Modified: trunk/Graph/src/charts/pie.php
===================================================================
--- trunk/Graph/src/charts/pie.php      2006-09-24 20:49:23 UTC (rev 3565)
+++ trunk/Graph/src/charts/pie.php      2006-09-25 08:11:08 UTC (rev 3566)
@@ -80,7 +80,7 @@
         $angle = 0;
         foreach ( $dataset as $label => $value )
         {
-            switch( $dataset->displayType->default )
+            switch ( $dataset->displayType->default )
             {
                 case ezcGraph::PIE:
                     $renderer->drawPieSegment(

Modified: trunk/Graph/src/colors/linear_gradient.php
===================================================================
--- trunk/Graph/src/colors/linear_gradient.php  2006-09-24 20:49:23 UTC (rev 
3565)
+++ trunk/Graph/src/colors/linear_gradient.php  2006-09-25 08:11:08 UTC (rev 
3566)
@@ -143,3 +143,4 @@
         );
     }
 }
+?>

Modified: trunk/Graph/src/colors/radial_gradient.php
===================================================================
--- trunk/Graph/src/colors/radial_gradient.php  2006-09-24 20:49:23 UTC (rev 
3565)
+++ trunk/Graph/src/colors/radial_gradient.php  2006-09-25 08:11:08 UTC (rev 
3566)
@@ -150,3 +150,4 @@
         );
     }
 }
+?>

Modified: trunk/Graph/src/datasets/base.php
===================================================================
--- trunk/Graph/src/datasets/base.php   2006-09-24 20:49:23 UTC (rev 3565)
+++ trunk/Graph/src/datasets/base.php   2006-09-25 08:11:08 UTC (rev 3566)
@@ -145,7 +145,8 @@
      */
     public function __get( $propertyName )
     {
-        if ( isset( $this->$propertyName ) ) {
+        if ( isset( $this->$propertyName ) )
+        {
             return $this->$propertyName;
         }
         else 

Modified: trunk/Graph/src/driver/gd.php
===================================================================
--- trunk/Graph/src/driver/gd.php       2006-09-24 20:49:23 UTC (rev 3565)
+++ trunk/Graph/src/driver/gd.php       2006-09-25 08:11:08 UTC (rev 3566)
@@ -267,7 +267,7 @@
      */
     protected function getTextBoundings( $size, ezcGraphFontOptions $font, 
$text )
     {
-        switch( $font->type )
+        switch ( $font->type )
         {
             case ezcGraph::PS_FONT:
                 if ( !isset( $this->psFontRessources[$font->path] ) )
@@ -319,7 +319,7 @@
      */
     protected function renderText( $image, $text, ezcGraphFontOptions $font, 
ezcGraphCoordinate $position, $size )
     {
-        switch( $font->type )
+        switch ( $font->type )
         {
             case ezcGraph::PS_FONT:
                 imagePsText( 
@@ -431,7 +431,8 @@
 
         // Check width of last line
         $boundings = $this->getTextBoundings( $size, $this->options->font, 
implode( ' ', $lines[$line] ) );
-        if ( $boundings->width > $width ) {
+        if ( $boundings->width > $width )
+        {
             return false;
         }
 

Modified: trunk/Graph/src/driver/svg.php
===================================================================
--- trunk/Graph/src/driver/svg.php      2006-09-24 20:49:23 UTC (rev 3565)
+++ trunk/Graph/src/driver/svg.php      2006-09-25 08:11:08 UTC (rev 3566)
@@ -452,7 +452,8 @@
 
         // Check width of last line
         $strWidth = $this->getTextWidth( implode( ' ', $selectedLine ), $size 
);
-        if ( $strWidth > $width ) {
+        if ( $strWidth > $width )
+        {
             return false;
         }
 
@@ -752,7 +753,7 @@
         $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 @@
         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 @@
         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 @@
             );
 
             $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 @@
     {
         $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 );

Modified: trunk/Graph/src/element/background.php
===================================================================
--- trunk/Graph/src/element/background.php      2006-09-24 20:49:23 UTC (rev 
3565)
+++ trunk/Graph/src/element/background.php      2006-09-25 08:11:08 UTC (rev 
3566)
@@ -24,7 +24,7 @@
  *  $chart->background->repeat = ezcGraph::NO_REPEAT; // default;
  *  $chart->background->position = ezcGraph::CENTER | ezcGraph::MIDDLE;
  *
- *  //Image will be repeated all over
+ *  // Image will be repeated all over
  *  $chart->background->repeat = ezcGraph::HORIZONTAL | ezcGraph::VERTICAL;
  *      // The position is not relevant here.
  * </code>

Modified: trunk/Graph/src/interfaces/element.php
===================================================================
--- trunk/Graph/src/interfaces/element.php      2006-09-24 20:49:23 UTC (rev 
3565)
+++ trunk/Graph/src/interfaces/element.php      2006-09-25 08:11:08 UTC (rev 
3566)
@@ -118,7 +118,7 @@
                 $this->properties['margin'] = max( 0, (int) $propertyValue );
                 break;
             case 'borderWidth':
-                $this->properties['borderWidth'] = max( 0, (int) 
$propertyValue);
+                $this->properties['borderWidth'] = max( 0, (int) 
$propertyValue );
                 break;
             case 'font':
                 if ( $propertyValue instanceof ezcGraphFontOptions )

Modified: trunk/Graph/src/math/polynom.php
===================================================================
--- trunk/Graph/src/math/polynom.php    2006-09-24 20:49:23 UTC (rev 3565)
+++ trunk/Graph/src/math/polynom.php    2006-09-25 08:11:08 UTC (rev 3566)
@@ -134,7 +134,7 @@
     public function evaluate( $x )
     {
         $value = 0;
-        foreach( $this->values as $exponent => $factor )
+        foreach ( $this->values as $exponent => $factor )
         {
             $value += $factor * pow( $x, $exponent );
         }

Modified: trunk/Graph/src/options/font.php
===================================================================
--- trunk/Graph/src/options/font.php    2006-09-24 20:49:23 UTC (rev 3565)
+++ trunk/Graph/src/options/font.php    2006-09-25 08:11:08 UTC (rev 3566)
@@ -90,10 +90,10 @@
         switch ( $propertyName )
         {
             case 'minFontSize':
-                $this->properties['minFontSize'] = max(1, (float) 
$propertyValue);
+                $this->properties['minFontSize'] = max( 1, (float) 
$propertyValue );
                 break;
             case 'maxFontSize':
-                $this->properties['maxFontSize'] = max(1, (float) 
$propertyValue);
+                $this->properties['maxFontSize'] = max( 1, (float) 
$propertyValue );
                 break;
             case 'minimalUsedFont':
                 $propertyValue = (float) $propertyValue;

Modified: trunk/Graph/src/renderer/3d.php
===================================================================
--- trunk/Graph/src/renderer/3d.php     2006-09-24 20:49:23 UTC (rev 3565)
+++ trunk/Graph/src/renderer/3d.php     2006-09-25 08:11:08 UTC (rev 3566)
@@ -479,7 +479,7 @@
 
             // Get average y coordinate for polygon to use for zBuffer
             $center = 0;
-            foreach( $polygonPoints as $point )
+            foreach ( $polygonPoints as $point )
             {
                 $center += $point->y;
             }
@@ -522,7 +522,7 @@
 
             // Get average y coordinate for polygon to use for zBuffer
             $center = 0;
-            foreach( $polygonPoints as $point )
+            foreach ( $polygonPoints as $point )
             {
                 $center += $point->y;
             }
@@ -1723,7 +1723,7 @@
             $this->driver->drawPolygon(
                 $stepPolygonCoordinates,
                 $color,
-                !(bool) $this->options->fillAxis
+                ! (bool) $this->options->fillAxis
             );
         }
     }

-- 
svn-components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-components

Reply via email to