protected function getNoApiOption()
    {
        $packageName = $this->repoConfig['package-name'];
        $opts = RepoUtil::getArrayValue($this->repoConfig, 'vcs-driver-options', array());
        $noApiOpt = RepoUtil::getArrayValue($opts, 'github-no-api', array());
        $defaultValue = false;

        if (\is_bool($noApiOpt)) {
            $defaultValue = $noApiOpt;
            $noApiOpt = array();
        }

        $noApiOpt['default'] = (bool) RepoUtil::getArrayValue($noApiOpt, 'default', $defaultValue);
        $noApiOpt['packages'] = (array) RepoUtil::getArrayValue($noApiOpt, 'packages', array());

        return (bool) RepoUtil::getArrayValue($noApiOpt['packages'], $packageName, $defaultValue);
    }
protected function getNoApiOption()
    {
        $packageName = $this->repoConfig['package-name'];
        $opts = RepoUtil::getArrayValue($this->repoConfig, 'vcs-driver-options', array());
        $noApiOpt = RepoUtil::getArrayValue($opts, 'github-no-api', array());
        $defaultValue = false;

        if (\is_bool($noApiOpt)) {
            $defaultValue = $noApiOpt;
            $noApiOpt = array();
        }

        $noApiOpt['default'] = (bool) RepoUtil::getArrayValue($noApiOpt, 'default', $defaultValue);
        $noApiOpt['packages'] = (array) RepoUtil::getArrayValue($noApiOpt, 'packages', array());

        return (bool) RepoUtil::getArrayValue($noApiOpt['packages'], $packageName, $defaultValue);
    }
protected function getNoApiOption ( ) { $ packageName = $ this -> repoConfig [ 'package-name' ] ; $ opts = RepoUtil :: getArrayValue ( $ this -> repoConfig , 'vcs-driver-options' , array ( ) ) ; $ noApiOpt = RepoUtil :: getArrayValue ( $ opts , 'github-no-api' , array ( ) ) ; $ defaultValue = false ; if ( \ is_bool ( $ noApiOpt ) ) { $ defaultValue = $ noApiOpt ; $ noApiOpt = array ( ) ; } $ noApiOpt [ 'default' ] = ( bool ) RepoUtil :: getArrayValue ( $ noApiOpt , 'default' , $ defaultValue ) ; $ noApiOpt [ 'packages' ] = ( array ) RepoUtil :: getArrayValue ( $ noApiOpt , 'packages' , array ( ) ) ; return ( bool ) RepoUtil :: getArrayValue ( $ noApiOpt [ 'packages' ] , $ packageName , $ defaultValue ) ; }
Get the no-api repository option.

@return bool
Get the no - api repository option .