protected function overrideBranchAliasConfig(PackageInterface $package, $aliasNormalized, $branch)
    {
        if ($package instanceof Package && false === strpos('dev-', $aliasNormalized)) {
            $extra = $package->getExtra();
            $extra['branch-alias'] = array(
                'dev-'.$branch => $this->rootPackageVersion.'-dev',
            );
            $this->injectExtraConfig($package, $extra);
        }

        return $package;
    }
protected function overrideBranchAliasConfig(PackageInterface $package, $aliasNormalized, $branch)
    {
        if ($package instanceof Package && false === strpos('dev-', $aliasNormalized)) {
            $extra = $package->getExtra();
            $extra['branch-alias'] = array(
                'dev-'.$branch => $this->rootPackageVersion.'-dev',
            );
            $this->injectExtraConfig($package, $extra);
        }

        return $package;
    }
protected function overrideBranchAliasConfig ( PackageInterface $ package , $ aliasNormalized , $ branch ) { if ( $ package instanceof Package && false === strpos ( 'dev-' , $ aliasNormalized ) ) { $ extra = $ package -> getExtra ( ) ; $ extra [ 'branch-alias' ] = array ( 'dev-' . $ branch => $ this -> rootPackageVersion . '-dev' , ) ; $ this -> injectExtraConfig ( $ package , $ extra ) ; } return $ package ; }
Override the branch alias extra config of the current package.

@param PackageInterface $package         The current package
@param string           $aliasNormalized The alias version normalizes
@param string           $branch          The branch name

@return PackageInterface
Override the branch alias extra config of the current package .