private static function formatVersion($version)
    {
        $version = str_replace(array('x', 'X', '*'), '0', $version);
        $exp = explode('.', $version);

        if (($size = \count($exp)) < 3) {
            for ($i = $size; $i < 3; ++$i) {
                $exp[] = '0';
            }
        }

        return $exp[0].'.'.$exp[1].'.'.$exp[2];
    }
private static function formatVersion($version)
    {
        $version = str_replace(array('x', 'X', '*'), '0', $version);
        $exp = explode('.', $version);

        if (($size = \count($exp)) < 3) {
            for ($i = $size; $i < 3; ++$i) {
                $exp[] = '0';
            }
        }

        return $exp[0].'.'.$exp[1].'.'.$exp[2];
    }
private static function formatVersion ( $ version ) { $ version = str_replace ( array ( 'x' , 'X' , '*' ) , '0' , $ version ) ; $ exp = explode ( '.' , $ version ) ; if ( ( $ size = \ count ( $ exp ) ) < 3 ) { for ( $ i = $ size ; $ i < 3 ; ++ $ i ) { $ exp [ ] = '0' ; } } return $ exp [ 0 ] . '.' . $ exp [ 1 ] . '.' . $ exp [ 2 ] ; }
Format the version for the asset package.

@param string $version The branch alias version

@return string
Format the version for the asset package .