public function getRootDirectory()
    {
        $dir = $this->getWorktreeDirectory();
        $relativeRoot = trim(str_replace(DIRECTORY_SEPARATOR, '/', $this->gitRepository->getDirectoryToParse()), '/');
        if ($relativeRoot !== '') {
            $dir .= '/' . $relativeRoot;
        }

        return $dir;
    }
public function getRootDirectory()
    {
        $dir = $this->getWorktreeDirectory();
        $relativeRoot = trim(str_replace(DIRECTORY_SEPARATOR, '/', $this->gitRepository->getDirectoryToParse()), '/');
        if ($relativeRoot !== '') {
            $dir .= '/' . $relativeRoot;
        }

        return $dir;
    }
public function getRootDirectory ( ) { $ dir = $ this -> getWorktreeDirectory ( ) ; $ relativeRoot = trim ( str_replace ( DIRECTORY_SEPARATOR , '/' , $ this -> gitRepository -> getDirectoryToParse ( ) ) , '/' ) ; if ( $ relativeRoot !== '' ) { $ dir .= '/' . $ relativeRoot ; } return $ dir ; }
Return the directory containing the files to be parsed.

@throws UserMessageException

@return string
Return the directory containing the files to be parsed .