Skip to content
Permalink
Browse files

Use traditional array syntax

  • Loading branch information...
Gareth Ellis
Gareth Ellis committed Dec 1, 2015
1 parent 3f99269 commit 56cfe8492a61ef794a64d10aedd3414c9b6972f6
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Console/Helper/ProgressShellHelper.php
@@ -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];
}
@@ -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'];

0 comments on commit 56cfe84

Please sign in to comment.
You can’t perform that action at this time.