diff --git a/lib/Cake/Console/ConsoleOptionParser.php b/lib/Cake/Console/ConsoleOptionParser.php index 97726f0be..8d3cdeeed 100644 --- a/lib/Cake/Console/ConsoleOptionParser.php +++ b/lib/Cake/Console/ConsoleOptionParser.php @@ -627,7 +627,7 @@ class ConsoleOptionParser { */ protected function _parseArg($argument, $args) { if (empty($this->_args)) { - array_push($args, $argument); + $args[] = $argument; return $args; } $next = count($args); @@ -636,7 +636,7 @@ class ConsoleOptionParser { } if ($this->_args[$next]->validChoice($argument)) { - array_push($args, $argument); + $args[] = $argument; return $args; } } diff --git a/lib/Cake/Utility/String.php b/lib/Cake/Utility/String.php index 01f9acbbb..65969b69c 100644 --- a/lib/Cake/Utility/String.php +++ b/lib/Cake/Utility/String.php @@ -523,7 +523,7 @@ class String { } } else { foreach ($droppedTags as $closingTag) { - array_push($openTags, $closingTag[1]); + $openTags[] = $closingTag[1]; } } } diff --git a/lib/Cake/View/ScaffoldView.php b/lib/Cake/View/ScaffoldView.php index 5cb9fb677..04674a338 100644 --- a/lib/Cake/View/ScaffoldView.php +++ b/lib/Cake/View/ScaffoldView.php @@ -69,7 +69,7 @@ class ScaffoldView extends ThemeView { $paths = $this->_paths($this->plugin); $exts = array($this->ext); if ($this->ext !== '.ctp') { - array_push($exts, '.ctp'); + $exts[] = '.ctp'; } foreach ($exts as $ext) { foreach ($paths as $path) { diff --git a/lib/Cake/View/View.php b/lib/Cake/View/View.php index 408212584..475f02bb3 100644 --- a/lib/Cake/View/View.php +++ b/lib/Cake/View/View.php @@ -1058,7 +1058,7 @@ class View extends Object { protected function _getExtensions() { $exts = array($this->ext); if ($this->ext !== '.ctp') { - array_push($exts, '.ctp'); + $exts[] = '.ctp'; } return $exts; }