protected function prepareTraits(array $traits)
    {
        \natcasesort($traits);

        // My kingdom for a generator.
        $ret = [];

        foreach ($traits as $name) {
            if ($this->showItem($name)) {
                $ret[$name] = [
                    'name'  => $name,
                    'style' => self::IS_CLASS,
                    'value' => $this->presentSignature($name),
                ];
            }
        }

        return $ret;
    }
protected function prepareTraits(array $traits)
    {
        \natcasesort($traits);

        // My kingdom for a generator.
        $ret = [];

        foreach ($traits as $name) {
            if ($this->showItem($name)) {
                $ret[$name] = [
                    'name'  => $name,
                    'style' => self::IS_CLASS,
                    'value' => $this->presentSignature($name),
                ];
            }
        }

        return $ret;
    }
protected function prepareTraits ( array $ traits ) { \ natcasesort ( $ traits ) ; // My kingdom for a generator. $ ret = [ ] ; foreach ( $ traits as $ name ) { if ( $ this -> showItem ( $ name ) ) { $ ret [ $ name ] = [ 'name' => $ name , 'style' => self :: IS_CLASS , 'value' => $ this -> presentSignature ( $ name ) , ] ; } } return $ ret ; }
Prepare formatted trait array.

@param array $traits

@return array
Prepare formatted trait array .