protected function splitNameAndPath($name)
    {

        list($start, $end) = strpos($name, '::') ? explode('::', $name) : ['', $name];

        if ($start) {
            return [$start, $end];
        }

        $paths = $this->getPaths();

        // If the name does not exists in the paths, it assumes its a (file)path.
        if (!isset($paths[$end])) {
            return ['', $end];
        }

        return [$end, ''];

    }
protected function splitNameAndPath($name)
    {

        list($start, $end) = strpos($name, '::') ? explode('::', $name) : ['', $name];

        if ($start) {
            return [$start, $end];
        }

        $paths = $this->getPaths();

        // If the name does not exists in the paths, it assumes its a (file)path.
        if (!isset($paths[$end])) {
            return ['', $end];
        }

        return [$end, ''];

    }
protected function splitNameAndPath ( $ name ) { list ( $ start , $ end ) = strpos ( $ name , '::' ) ? explode ( '::' , $ name ) : [ '' , $ name ] ; if ( $ start ) { return [ $ start , $ end ] ; } $ paths = $ this -> getPaths ( ) ; // If the name does not exists in the paths, it assumes its a (file)path. if ( ! isset ( $ paths [ $ end ] ) ) { return [ '' , $ end ] ; } return [ $ end , '' ] ; }
Splits the name and path of a path query.

@param $name

@return array
Splits the name and path of a path query .