From d634db87d432c87a092f1c4cee69a56914cbaa97 Mon Sep 17 00:00:00 2001 From: "godzilla80@gmx.net" <> Date: Thu, 19 Mar 2009 22:07:39 +0000 Subject: replace array_push() function calls with native language constuct if make sense --- framework/Web/UI/THtmlWriter.php | 4 ++-- framework/Web/UI/TTemplateManager.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'framework/Web/UI') diff --git a/framework/Web/UI/THtmlWriter.php b/framework/Web/UI/THtmlWriter.php index 217b9663..9713d941 100644 --- a/framework/Web/UI/THtmlWriter.php +++ b/framework/Web/UI/THtmlWriter.php @@ -232,12 +232,12 @@ class THtmlWriter extends TApplicationComponent implements ITextWriter if(isset(self::$_simpleTags[$tagName])) { $str.=' />'; - array_push($this->_openTags,''); + $this->_openTags[] = ''; } else { $str.='>'; - array_push($this->_openTags,$tagName); + $this->_openTags[] = $tagName; } $this->_writer->write($str); $this->_attributes=array(); diff --git a/framework/Web/UI/TTemplateManager.php b/framework/Web/UI/TTemplateManager.php index f44d414c..6d44d7d7 100644 --- a/framework/Web/UI/TTemplateManager.php +++ b/framework/Web/UI/TTemplateManager.php @@ -608,7 +608,7 @@ class TTemplate extends TApplicationComponent implements ITemplate $tpl[$c++]=array($container,$type,$attributes); if($str[strlen($str)-2]!=='/') // open tag { - array_push($stack,$type); + $stack[] = $type; $container=$c-1; } } @@ -695,7 +695,7 @@ class TTemplate extends TApplicationComponent implements ITemplate else // regular property { $prop=strtolower($match[3][0]); - array_push($stack,'@'.$prop); + $stack[] = '@'.$prop; if(!$expectPropEnd) { if($matchStart>$textStart) -- cgit v1.2.3