public static function formatPackage(PackageInterface $package, $packageName, array $packageValue)
    {
        $packageValue['name'] = $packageName;

        if (!isset($packageValue['version'])) {
            $extra = $package->getExtra();
            $version = $package->getPrettyVersion();

            if (0 === strpos($version, 'dev-') && isset($extra['branch-alias'][$version])) {
                $version = $extra['branch-alias'][$version];
            }

            $packageValue['version'] = self::formatVersion(str_replace('-dev', '', $version));
        }

        return $packageValue;
    }
public static function formatPackage(PackageInterface $package, $packageName, array $packageValue)
    {
        $packageValue['name'] = $packageName;

        if (!isset($packageValue['version'])) {
            $extra = $package->getExtra();
            $version = $package->getPrettyVersion();

            if (0 === strpos($version, 'dev-') && isset($extra['branch-alias'][$version])) {
                $version = $extra['branch-alias'][$version];
            }

            $packageValue['version'] = self::formatVersion(str_replace('-dev', '', $version));
        }

        return $packageValue;
    }
public static function formatPackage ( PackageInterface $ package , $ packageName , array $ packageValue ) { $ packageValue [ 'name' ] = $ packageName ; if ( ! isset ( $ packageValue [ 'version' ] ) ) { $ extra = $ package -> getExtra ( ) ; $ version = $ package -> getPrettyVersion ( ) ; if ( 0 === strpos ( $ version , 'dev-' ) && isset ( $ extra [ 'branch-alias' ] [ $ version ] ) ) { $ version = $ extra [ 'branch-alias' ] [ $ version ] ; } $ packageValue [ 'version' ] = self :: formatVersion ( str_replace ( '-dev' , '' , $ version ) ) ; } return $ packageValue ; }
Format the asset package.

@param PackageInterface $package      The composer package
@param string           $packageName  The package name
@param array            $packageValue The package value

@return array
Format the asset package .