summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2007-06-12 14:56:09 +0000
committerKore Nordmann <github@kore-nordmann.de>2007-06-12 14:56:09 +0000
commita04a1d75f93fc556d9838c9d5de9216521642ede (patch)
treedd8f96fbb08b905ad7cf588e0a9aedf1e8e908b1 /src
parentb33909275f604b119c59972779a47a4288e0f5ec (diff)
downloadzetacomponents-graph-a04a1d75f93fc556d9838c9d5de9216521642ede.zip
zetacomponents-graph-a04a1d75f93fc556d9838c9d5de9216521642ede.tar.gz
- Fixed initialisations of struct variables
# Detected by doc coverage
Diffstat (limited to 'src')
-rw-r--r--src/math/boundings.php2
-rw-r--r--src/structs/context.php2
-rw-r--r--src/structs/step.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/math/boundings.php b/src/math/boundings.php
index b6dd5f0..b5286c7 100644
--- a/src/math/boundings.php
+++ b/src/math/boundings.php
@@ -57,7 +57,7 @@ class ezcGraphBoundings
* @param float $y1 Bottom right y coordinate
* @return ezcGraphBoundings
*/
- public function __construct( $x0 = 0., $y0 = 0., $x1 = false, $y1 = false )
+ public function __construct( $x0 = 0., $y0 = 0., $x1 = null, $y1 = null )
{
$this->x0 = $x0;
$this->y0 = $y0;
diff --git a/src/structs/context.php b/src/structs/context.php
index 1110bad..6e0a070 100644
--- a/src/structs/context.php
+++ b/src/structs/context.php
@@ -45,7 +45,7 @@ class ezcGraphContext extends ezcBaseStruct
* @return void
* @ignore
*/
- public function __construct( $dataset = false, $datapoint = false, $url = null )
+ public function __construct( $dataset = null, $datapoint = null, $url = null )
{
$this->dataset = $dataset;
$this->datapoint = $datapoint;
diff --git a/src/structs/step.php b/src/structs/step.php
index faedbc7..9f6977e 100644
--- a/src/structs/step.php
+++ b/src/structs/step.php
@@ -68,7 +68,7 @@ class ezcGraphAxisStep
* @param bool $isLast
* @ignore
*/
- public function __construct( $position = .0, $width = .0, $label = false, array $childs = array(), $isZero = false, $isLast = false )
+ public function __construct( $position = .0, $width = .0, $label = null, array $childs = array(), $isZero = false, $isLast = false )
{
$this->position = (float) $position;
$this->width = (float) $width;
OpenPOWER on IntegriCloud