protected function validateVcsRepositories($index, $repo)
    {
        if ('package' === $repo['type']) {
            return;
        }

        if (false === strpos($repo['type'], '-')) {
            throw new \UnexpectedValueException('Repository '.$index.' ('.json_encode($repo).') must have a type defined in this way: "%asset-type%-%type%"');
        }
        if (!isset($repo['url'])) {
            throw new \UnexpectedValueException('Repository '.$index.' ('.json_encode($repo).') must have a url defined');
        }
    }
protected function validateVcsRepositories($index, $repo)
    {
        if ('package' === $repo['type']) {
            return;
        }

        if (false === strpos($repo['type'], '-')) {
            throw new \UnexpectedValueException('Repository '.$index.' ('.json_encode($repo).') must have a type defined in this way: "%asset-type%-%type%"');
        }
        if (!isset($repo['url'])) {
            throw new \UnexpectedValueException('Repository '.$index.' ('.json_encode($repo).') must have a url defined');
        }
    }
protected function validateVcsRepositories ( $ index , $ repo ) { if ( 'package' === $ repo [ 'type' ] ) { return ; } if ( false === strpos ( $ repo [ 'type' ] , '-' ) ) { throw new \ UnexpectedValueException ( 'Repository ' . $ index . ' (' . json_encode ( $ repo ) . ') must have a type defined in this way: "%asset-type%-%type%"' ) ; } if ( ! isset ( $ repo [ 'url' ] ) ) { throw new \ UnexpectedValueException ( 'Repository ' . $ index . ' (' . json_encode ( $ repo ) . ') must have a url defined' ) ; } }
Validates the config of vcs repositories.

@param int|string  $index The index
@param array|mixed $repo  The config repo

@throws \UnexpectedValueException
Validates the config of vcs repositories .