Use short array declaration

This commit is contained in:
Romain Neutron
2013-11-18 11:58:12 +01:00
parent 2898b317c4
commit 56b373ee6e
723 changed files with 8350 additions and 8352 deletions

View File

@@ -57,10 +57,10 @@ $cli = new CLI("
. ' Phraseanet Developer Tools ', Version::getName() . ' ' . Version::getNumber());
if ($cli['configuration']->isSetup()) {
$helpers = array(
$helpers = [
'db' => new ConnectionHelper($cli['EM']->getConnection()),
'em' => new EntityManagerHelper($cli['EM'])
);
];
$helperSet = $cli['console']->getHelperSet();
foreach ($helpers as $name => $helper) {
@@ -80,7 +80,7 @@ $cli->command(new Uninstaller());
$cli->command(new \module_console_systemTemplateGenerator('system:generate-templates'));
$cli['console']->addCommands(array(
$cli['console']->addCommands([
// DBAL Commands
new RunSqlCommand(),
new ImportCommand(),
@@ -99,6 +99,6 @@ $cli['console']->addCommands(array(
new ConvertMappingCommand(),
new RunDqlCommand(),
new ValidateSchemaCommand(),
));
]);
exit($cli->runCLI());