mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Use traditional array syntax
This commit is contained in:
parent
3f992695b2
commit
56cfe8492a
1 changed files with 2 additions and 2 deletions
|
@ -55,7 +55,7 @@ class ProgressShellHelper extends ShellHelper {
|
||||||
* @throws RuntimeException
|
* @throws RuntimeException
|
||||||
*/
|
*/
|
||||||
public function output($args) {
|
public function output($args) {
|
||||||
$args += ['callback' => null];
|
$args += array('callback' => null);
|
||||||
if (isset($args[0])) {
|
if (isset($args[0])) {
|
||||||
$args['callback'] = $args[0];
|
$args['callback'] = $args[0];
|
||||||
}
|
}
|
||||||
|
@ -82,7 +82,7 @@ class ProgressShellHelper extends ShellHelper {
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function init(array $args = array()) {
|
public function init(array $args = array()) {
|
||||||
$args += ['total' => 100, 'width' => 80];
|
$args += array('total' => 100, 'width' => 80);
|
||||||
$this->_progress = 0;
|
$this->_progress = 0;
|
||||||
$this->_width = $args['width'];
|
$this->_width = $args['width'];
|
||||||
$this->_total = $args['total'];
|
$this->_total = $args['total'];
|
||||||
|
|
Loading…
Reference in a new issue