protected function configureBranchPackage($branch, array $data)
    {
        $parsedBranch = $this->versionParser->normalizeBranch($branch);
        $data['version_normalized'] = $parsedBranch;

        // make sure branch packages have a dev flag
        if ('dev-' === substr((string) $parsedBranch, 0, 4) || '9999999-dev' === $parsedBranch) {
            $data['version'] = 'dev-'.$data['version'];
        } else {
            $data['version'] = preg_replace('{(\.9{7})+}', '.x', (string) $parsedBranch);
        }

        return $data;
    }
protected function configureBranchPackage($branch, array $data)
    {
        $parsedBranch = $this->versionParser->normalizeBranch($branch);
        $data['version_normalized'] = $parsedBranch;

        // make sure branch packages have a dev flag
        if ('dev-' === substr((string) $parsedBranch, 0, 4) || '9999999-dev' === $parsedBranch) {
            $data['version'] = 'dev-'.$data['version'];
        } else {
            $data['version'] = preg_replace('{(\.9{7})+}', '.x', (string) $parsedBranch);
        }

        return $data;
    }
protected function configureBranchPackage ( $ branch , array $ data ) { $ parsedBranch = $ this -> versionParser -> normalizeBranch ( $ branch ) ; $ data [ 'version_normalized' ] = $ parsedBranch ; // make sure branch packages have a dev flag if ( 'dev-' === substr ( ( string ) $ parsedBranch , 0 , 4 ) || '9999999-dev' === $ parsedBranch ) { $ data [ 'version' ] = 'dev-' . $ data [ 'version' ] ; } else { $ data [ 'version' ] = preg_replace ( '{(\.9{7})+}' , '.x' , ( string ) $ parsedBranch ) ; } return $ data ; }
Configures the package of branch.

@param string $branch The branch name
@param array  $data   The data

@return array
Configures the package of branch .