/*
* This file is part of Psy Shell.
*
- * (c) 2012-2017 Justin Hileman
+ * (c) 2012-2018 Justin Hileman
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
return;
}
- return array(
+ return [
'Global Variables' => $globals,
- );
+ ];
}
/**
$names = array_keys($GLOBALS);
natcasesort($names);
- $ret = array();
+ $ret = [];
foreach ($names as $name) {
$ret[$name] = $GLOBALS[$name];
}
protected function prepareGlobals($globals)
{
// My kingdom for a generator.
- $ret = array();
+ $ret = [];
foreach ($globals as $name => $value) {
if ($this->showItem($name)) {
$fname = '$' . $name;
- $ret[$fname] = array(
+ $ret[$fname] = [
'name' => $fname,
'style' => self::IS_GLOBAL,
'value' => $this->presentRef($value),
- );
+ ];
}
}