mirror of
https://github.com/friendica/friendica
synced 2025-04-27 21:50:11 +00:00
Use short form array syntax everywhere
- Add short form array syntax to po2php.php generation
This commit is contained in:
parent
77dfbaa0bf
commit
e36f2bb1fb
212 changed files with 5160 additions and 5160 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue