protected function prepareGlobals($globals)
    {
        // My kingdom for a generator.
        $ret = [];

        foreach ($globals as $name => $value) {
            if ($this->showItem($name)) {
                $fname = '$' . $name;
                $ret[$fname] = [
                    'name'  => $fname,
                    'style' => self::IS_GLOBAL,
                    'value' => $this->presentRef($value),
                ];
            }
        }

        return $ret;
    }
protected function prepareGlobals($globals)
    {
        // My kingdom for a generator.
        $ret = [];

        foreach ($globals as $name => $value) {
            if ($this->showItem($name)) {
                $fname = '$' . $name;
                $ret[$fname] = [
                    'name'  => $fname,
                    'style' => self::IS_GLOBAL,
                    'value' => $this->presentRef($value),
                ];
            }
        }

        return $ret;
    }
protected function prepareGlobals ( $ globals ) { // My kingdom for a generator. $ ret = [ ] ; foreach ( $ globals as $ name => $ value ) { if ( $ this -> showItem ( $ name ) ) { $ fname = '$' . $ name ; $ ret [ $ fname ] = [ 'name' => $ fname , 'style' => self :: IS_GLOBAL , 'value' => $ this -> presentRef ( $ value ) , ] ; } } return $ ret ; }
Prepare formatted global variable array.

@param array $globals

@return array
Prepare formatted global variable array .