Skip to content

Commit

Permalink
Use traditional array syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Gareth Ellis committed Dec 1, 2015
1 parent 3f99269 commit 56cfe84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Cake/Console/Helper/ProgressShellHelper.php
Expand Up @@ -55,7 +55,7 @@ class ProgressShellHelper extends ShellHelper {
* @throws RuntimeException
*/
public function output($args) {
$args += ['callback' => null];
$args += array('callback' => null);
if (isset($args[0])) {
$args['callback'] = $args[0];
}
Expand All @@ -82,7 +82,7 @@ public function output($args) {
* @return void
*/
public function init(array $args = array()) {
$args += ['total' => 100, 'width' => 80];
$args += array('total' => 100, 'width' => 80);
$this->_progress = 0;
$this->_width = $args['width'];
$this->_total = $args['total'];
Expand Down

0 comments on commit 56cfe84

Please sign in to comment.