protected function getProjectPackageName($projectName, $repositoryUrl)
    {
        $packageName = null;

        if ($this->hasComposerJson($projectName)) {
            $packageName = $this->getPackageNameByComposerJson($projectName);
        }

        return $packageName ? $packageName : $this->getPackageNameByRepositoryUrl($repositoryUrl);
    }
protected function getProjectPackageName($projectName, $repositoryUrl)
    {
        $packageName = null;

        if ($this->hasComposerJson($projectName)) {
            $packageName = $this->getPackageNameByComposerJson($projectName);
        }

        return $packageName ? $packageName : $this->getPackageNameByRepositoryUrl($repositoryUrl);
    }
protected function getProjectPackageName ( $ projectName , $ repositoryUrl ) { $ packageName = null ; if ( $ this -> hasComposerJson ( $ projectName ) ) { $ packageName = $ this -> getPackageNameByComposerJson ( $ projectName ) ; } return $ packageName ? $ packageName : $ this -> getPackageNameByRepositoryUrl ( $ repositoryUrl ) ; }
Get project name by repository url.

@param mixed $url
@param mixed $projectName
@param mixed $repositoryUrl
Get project name by repository url .