protected function getPathRev($identifier)
    {
        $path = $identifier;
        $rev = '';

        preg_match('{^(.+?)(@\d+)?/$}', $identifier, $match);

        if (!empty($match[2])) {
            $path = $match[1];
            $rev = $match[2];
        }

        return array($path, $rev);
    }
protected function getPathRev($identifier)
    {
        $path = $identifier;
        $rev = '';

        preg_match('{^(.+?)(@\d+)?/$}', $identifier, $match);

        if (!empty($match[2])) {
            $path = $match[1];
            $rev = $match[2];
        }

        return array($path, $rev);
    }
protected function getPathRev ( $ identifier ) { $ path = $ identifier ; $ rev = '' ; preg_match ( '{^(.+?)(@\d+)?/$}' , $ identifier , $ match ) ; if ( ! empty ( $ match [ 2 ] ) ) { $ path = $ match [ 1 ] ; $ rev = $ match [ 2 ] ; } return array ( $ path , $ rev ) ; }
Get path and rev.

@param string $identifier The identifier

@return string[]
Get path and rev .