Use short form array syntax everywhere

- Add short form array syntax to po2php.php generation
This commit is contained in:
Hypolite Petovan 2018-01-15 08:05:12 -05:00
parent 77dfbaa0bf
commit e36f2bb1fb
212 changed files with 5160 additions and 5160 deletions

View file

@ -54,12 +54,12 @@ class System extends BaseObject
array_shift($trace);
array_shift($trace);
$callstack = array();
$callstack = [];
$counter = 0;
$previous = array('class' => '', 'function' => '');
$previous = ['class' => '', 'function' => ''];
// The ignore list contains all functions that are only wrapper functions
$ignore = array('get_config', 'get_pconfig', 'set_config', 'set_pconfig', 'fetch_url', 'probe_url');
$ignore = ['get_config', 'get_pconfig', 'set_config', 'set_pconfig', 'fetch_url', 'probe_url'];
while ($func = array_pop($trace)) {
if (!empty($func['class'])) {
@ -75,7 +75,7 @@ class System extends BaseObject
}
}
$callstack2 = array();
$callstack2 = [];
while ((count($callstack2) < $depth) && (count($callstack) > 0)) {
$callstack2[] = array_pop($callstack);
}