You are here

private function Application::getAbbreviationSuggestions in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/console/Application.php \Symfony\Component\Console\Application::getAbbreviationSuggestions()

Returns abbreviated suggestions in string format.

Parameters

array $abbrevs Abbreviated suggestions to convert:

Return value

string A formatted string of abbreviated suggestions

2 calls to Application::getAbbreviationSuggestions()
Application::find in vendor/symfony/console/Application.php
Finds a command by name or alias.
Application::findNamespace in vendor/symfony/console/Application.php
Finds a registered namespace by a name or an abbreviation.

File

vendor/symfony/console/Application.php, line 983

Class

Application
An Application is the container for a collection of commands.

Namespace

Symfony\Component\Console

Code

private function getAbbreviationSuggestions($abbrevs) {
  return sprintf('%s, %s%s', $abbrevs[0], $abbrevs[1], count($abbrevs) > 2 ? sprintf(' and %d more', count($abbrevs) - 2) : '');
}