public function getLongVersion() { if ('UNKNOWN' !== $this->getName()) { if ('UNKNOWN' !== $this->getVersion()) { return sprintf('%s <info>%s</info>', $this->getName(), $this->getVersion()); } return $this->getName(); } return 'Console Tool'; }
public function getLongVersion() { $version = parent::getLongVersion() . ' by <comment>Fabien Potencier</comment>'; if ('@' . 'git-commit@' !== ($commit = '@git-commit@')) { $version .= ' (' . substr($commit, 0, 7) . ')'; } return $version; }