protected function getVariables($showAll)
{
$scopeVars = $this->context->getAll();
- uksort($scopeVars, function ($a, $b) {
- $aIndex = array_search($a, self::$specialNames);
- $bIndex = array_search($b, self::$specialNames);
+ \uksort($scopeVars, function ($a, $b) {
+ $aIndex = \array_search($a, self::$specialNames);
+ $bIndex = \array_search($b, self::$specialNames);
if ($aIndex !== false) {
if ($bIndex !== false) {
return -1;
}
- return strnatcasecmp($a, $b);
+ return \strnatcasecmp($a, $b);
});
$ret = [];
foreach ($scopeVars as $name => $val) {
- if (!$showAll && in_array($name, self::$specialNames)) {
+ if (!$showAll && \in_array($name, self::$specialNames)) {
continue;
}
$fname = '$' . $name;
$ret[$fname] = [
'name' => $fname,
- 'style' => in_array($name, self::$specialNames) ? self::IS_PRIVATE : self::IS_PUBLIC,
+ 'style' => \in_array($name, self::$specialNames) ? self::IS_PRIVATE : self::IS_PUBLIC,
'value' => $this->presentRef($val),
];
}