Symfony\Installer\DownloadCommand::checkProjectName PHP Method

checkProjectName() protected method

Checks the project name.
protected checkProjectName ( )
    protected function checkProjectName()
    {
        if (is_dir($this->projectDir) && !$this->isEmptyDirectory($this->projectDir)) {
            throw new \RuntimeException(sprintf("There is already a '%s' project in this directory (%s).\n" . 'Change your project name or create it in another directory.', $this->projectName, $this->projectDir));
        }
        return $this;
    }