protected function fixData($uri, $title)
    {
        $liAttr = [];
        if (is_int($uri)) {
            $uri = '#';
        }
        if (is_array($title)) {
            $liAttr = $title;
            $title = array_shift($liAttr);
        }
        return [$title, $uri, $liAttr];
    }
protected function fixData($uri, $title)
    {
        $liAttr = [];
        if (is_int($uri)) {
            $uri = '#';
        }
        if (is_array($title)) {
            $liAttr = $title;
            $title = array_shift($liAttr);
        }
        return [$title, $uri, $liAttr];
    }
protected function fixData ( $ uri , $ title ) { $ liAttr = [ ] ; if ( is_int ( $ uri ) ) { $ uri = '#' ; } if ( is_array ( $ title ) ) { $ liAttr = $ title ; $ title = array_shift ( $ liAttr ) ; } return [ $ title , $ uri , $ liAttr ] ; }
fixes item data

@param mixed $uri   uri of item or numeric key
@param mixed $title title of item or array of title and li attrs

@return array

@access protected
fixes item data