PhpBrew\Extension\Provider\GithubProvider::exists PHP Method

exists() public method

public exists ( $dsl, $packageName = null )
    public function exists($dsl, $packageName = null)
    {
        $dslparser = new RepositoryDslParser();
        $info = $dslparser->parse($dsl);
        $this->setOwner($info['owner']);
        $this->setRepository($info['package']);
        $this->setPackageName($packageName ?: $info['package']);
        return $info['repository'] == 'github';
    }