diff options
author | godzilla80@gmx.net <> | 2009-03-19 22:07:39 +0000 |
---|---|---|
committer | godzilla80@gmx.net <> | 2009-03-19 22:07:39 +0000 |
commit | d634db87d432c87a092f1c4cee69a56914cbaa97 (patch) | |
tree | 2a681041b70b22b61f3325725d663d62f8338e50 /framework/Collections | |
parent | de021710e1c0dae732e61ecb42a9ac60440f55ee (diff) |
replace array_push() function calls with native language constuct if make sense
Diffstat (limited to 'framework/Collections')
-rw-r--r-- | framework/Collections/TQueue.php | 2 | ||||
-rw-r--r-- | framework/Collections/TStack.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/framework/Collections/TQueue.php b/framework/Collections/TQueue.php index d8b692d1..1eacfb0a 100644 --- a/framework/Collections/TQueue.php +++ b/framework/Collections/TQueue.php @@ -141,7 +141,7 @@ class TQueue extends TComponent implements IteratorAggregate,Countable public function enqueue($item)
{
++$this->_c;
- array_push($this->_d,$item);
+ $this->_d[] = $item;
}
/**
diff --git a/framework/Collections/TStack.php b/framework/Collections/TStack.php index 0d3890b4..3c8d5fc6 100644 --- a/framework/Collections/TStack.php +++ b/framework/Collections/TStack.php @@ -140,7 +140,7 @@ class TStack extends TComponent implements IteratorAggregate,Countable public function push($item)
{
++$this->_c;
- array_push($this->_d,$item);
+ $this->_d[] = $item;
}
/**
|