/*
* This file is part of Psy Shell.
*
- * (c) 2012-2017 Justin Hileman
+ * (c) 2012-2018 Justin Hileman
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
{
$this
->setName('help')
- ->setAliases(array('?'))
- ->setDefinition(array(
- new InputArgument('command_name', InputArgument::OPTIONAL, 'The command name', null),
- ))
+ ->setAliases(['?'])
+ ->setDefinition([
+ new InputArgument('command_name', InputArgument::OPTIONAL, 'The command name.', null),
+ ])
->setDescription('Show a list of commands. Type `help [foo]` for information about [foo].')
->setHelp('My. How meta.');
}
$aliases = '';
}
- $table->addRow(array(
+ $table->addRow([
sprintf('<info>%s</info>', $name),
$command->getDescription(),
$aliases,
- ));
+ ]);
}
$output->startPaging();