CommandFormatter
final class CommandFormatter (View source)
CommandFormatter
Methods
static array
getSortedCommand(array $command)
Get the sorted command array based on priority
static array
flattenCommand(array $cmd, bool $toupper = true)
Flatten API command's nested arrays for easier handling
static string
formatCommand(array $command)
Format the command array into a plain text string
Details
static array
getSortedCommand(array $command)
Get the sorted command array based on priority
static array
flattenCommand(array $cmd, bool $toupper = true)
Flatten API command's nested arrays for easier handling
static string
formatCommand(array $command)
Format the command array into a plain text string