protected function hasComposerJson($projectName)
    {
        return is_dir($this->cwd.'/'.$this->projectsDir.'/'.$projectName)
            && file_exists($this->cwd.'/'.$this->projectsDir.'/'.$projectName.'/composer.json');
    }
protected function hasComposerJson($projectName)
    {
        return is_dir($this->cwd.'/'.$this->projectsDir.'/'.$projectName)
            && file_exists($this->cwd.'/'.$this->projectsDir.'/'.$projectName.'/composer.json');
    }
protected function hasComposerJson ( $ projectName ) { return is_dir ( $ this -> cwd . '/' . $ this -> projectsDir . '/' . $ projectName ) && file_exists ( $ this -> cwd . '/' . $ this -> projectsDir . '/' . $ projectName . '/composer.json' ) ; }
Test if project has composer.json file.

@param mixed $name
@param mixed $projectName
Test if project has composer . json file .