protected function getFormattedVersionAlias($alias, Configuration $configuration)
    {
        $version = $configuration->resolveVersionAlias($alias);

        if ($version === null) {
            if ($alias == 'next') {
                return 'Already at latest version';
            } elseif ($alias == 'prev') {
                return 'Already at first version';
            }
        }

        if ($version === '0') {
            return '<comment>0</comment>';
        }

        return $configuration->getDateTime($version) . ' (<comment>' . $version . '</comment>)';
    }
protected function getFormattedVersionAlias($alias, Configuration $configuration)
    {
        $version = $configuration->resolveVersionAlias($alias);

        if ($version === null) {
            if ($alias == 'next') {
                return 'Already at latest version';
            } elseif ($alias == 'prev') {
                return 'Already at first version';
            }
        }

        if ($version === '0') {
            return '<comment>0</comment>';
        }

        return $configuration->getDateTime($version) . ' (<comment>' . $version . '</comment>)';
    }
protected function getFormattedVersionAlias ( $ alias , Configuration $ configuration ) { $ version = $ configuration -> resolveVersionAlias ( $ alias ) ; if ( $ version === null ) { if ( $ alias == 'next' ) { return 'Already at latest version' ; } elseif ( $ alias == 'prev' ) { return 'Already at first version' ; } } if ( $ version === '0' ) { return '<comment>0</comment>' ; } return $ configuration -> getDateTime ( $ version ) . ' (<comment>' . $ version . '</comment>)' ; }
Returns a formatted version string for the alias.

@param string $alias
@param Configuration $configuration
@return string
Returns a formatted version string for the alias .