protected function normalizeBranchAlias(PackageInterface $package)
    {
        $stability = VersionParser::parseStability($this->versionParser->normalize($this->rootPackageVersion));
        $aliasNormalized = 'dev-'.$this->rootPackageVersion;

        if (BasePackage::STABILITY_STABLE === BasePackage::$stabilities[$stability]
            && null === $this->findPackage($package->getName(), $this->rootPackageVersion)) {
            $aliasNormalized = $this->versionParser->normalize($this->rootPackageVersion);
        }

        return $aliasNormalized;
    }
protected function normalizeBranchAlias(PackageInterface $package)
    {
        $stability = VersionParser::parseStability($this->versionParser->normalize($this->rootPackageVersion));
        $aliasNormalized = 'dev-'.$this->rootPackageVersion;

        if (BasePackage::STABILITY_STABLE === BasePackage::$stabilities[$stability]
            && null === $this->findPackage($package->getName(), $this->rootPackageVersion)) {
            $aliasNormalized = $this->versionParser->normalize($this->rootPackageVersion);
        }

        return $aliasNormalized;
    }
protected function normalizeBranchAlias ( PackageInterface $ package ) { $ stability = VersionParser :: parseStability ( $ this -> versionParser -> normalize ( $ this -> rootPackageVersion ) ) ; $ aliasNormalized = 'dev-' . $ this -> rootPackageVersion ; if ( BasePackage :: STABILITY_STABLE === BasePackage :: $ stabilities [ $ stability ] && null === $ this -> findPackage ( $ package -> getName ( ) , $ this -> rootPackageVersion ) ) { $ aliasNormalized = $ this -> versionParser -> normalize ( $ this -> rootPackageVersion ) ; } return $ aliasNormalized ; }
Normalize the alias of branch.

@param PackageInterface $package The package instance

@return string The alias branch name
Normalize the alias of branch .