summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/charts/options.php14
-rw-r--r--src/datasets/base.php10
-rw-r--r--src/interfaces/chart.php8
3 files changed, 17 insertions, 15 deletions
diff --git a/src/charts/options.php b/src/charts/options.php
index bb1b4a0..cfe0688 100644
--- a/src/charts/options.php
+++ b/src/charts/options.php
@@ -72,10 +72,10 @@ class ezcGraphChartOption extends ezcBaseOptions
{
case 'width':
$this->width = max( 1, (int) $propertyValue );
- break;
+ break;
case 'height':
$this->height = max( 1, (int) $propertyValue );
- break;
+ break;
case 'backgroundImage':
// Check for existance of file
if ( !is_file( $propertyValue ) || !is_readable( $propertyValue ) )
@@ -97,19 +97,19 @@ class ezcGraphChartOption extends ezcBaseOptions
}
$this->backgroundImage = $propertyValue;
- break;
+ break;
case 'background':
$this->background = ezcGraphColor::create( $propertyValue );
- break;
+ break;
case 'border':
$this->border = ezcGraphColor::create( $propertyValue );
- break;
+ break;
case 'borderWidth':
$this->borderWidth = max( 1, (int) $propertyValue );
- break;
+ break;
default:
throw new ezcBasePropertyNotFoundException( $propertyName );
- break;
+ break;
}
}
}
diff --git a/src/datasets/base.php b/src/datasets/base.php
index c643855..e9fccd7 100644
--- a/src/datasets/base.php
+++ b/src/datasets/base.php
@@ -54,13 +54,13 @@ class ezcGraphDataset implements ArrayAccess
{
case 'label':
$this->label->default = $propertyValue;
- break;
+ break;
case 'color':
$this->color->default = $propertyValue;
- break;
+ break;
case 'symbol':
$this->symbol->default = $propertyValue;
- break;
+ break;
}
}
@@ -68,7 +68,9 @@ class ezcGraphDataset implements ArrayAccess
{
if ( isset( $this->$propertyName ) ) {
return $this->$propertyName;
- } else {
+ }
+ else
+ {
throw new ezcBasePropertyNotFoundException( $propertyName );
}
}
diff --git a/src/interfaces/chart.php b/src/interfaces/chart.php
index e4ba22a..6056a7c 100644
--- a/src/interfaces/chart.php
+++ b/src/interfaces/chart.php
@@ -78,7 +78,7 @@ abstract class ezcGraphChart
switch ( $propertyName ) {
case 'title':
return $this->title = (string) $propertyValue;
- break;
+ break;
case 'renderer':
if ( $propertyValue instanceof ezcGraphRenderer )
{
@@ -88,7 +88,7 @@ abstract class ezcGraphChart
{
throw new ezcGraphInvalidRendererException( $propertyValue );
}
- break;
+ break;
case 'driver':
if ( $propertyValue instanceof ezcGraphDriver )
{
@@ -98,10 +98,10 @@ abstract class ezcGraphChart
{
throw new ezcGraphInvalidDriverException( $propertyValue );
}
- break;
+ break;
default:
return $this->addDataSet($propertyName, $propertyValue);
- break;
+ break;
}
}
OpenPOWER on IntegriCloud