protected function listingElement($key, string $type, $value): string
    {
        if (\is_array($value)) {
            return $this->nestedListing($key, $type, $value);
        } else {
            return '<li>'.$this->entities($value).'</li>';
        }
    }
protected function listingElement($key, string $type, $value): string
    {
        if (\is_array($value)) {
            return $this->nestedListing($key, $type, $value);
        } else {
            return '<li>'.$this->entities($value).'</li>';
        }
    }
protected function listingElement ( $ key , string $ type , $ value ) : string { if ( \ is_array ( $ value ) ) { return $ this -> nestedListing ( $ key , $ type , $ value ) ; } else { return '<li>' . $ this -> entities ( $ value ) . '</li>' ; } }
Create the HTML for a listing element.

@param  mixed  $key
@param  string  $type
@param  mixed  $value

@return string
Create the HTML for a listing element .