1
0
mirror of synced 2024-12-05 03:06:05 +03:00

Use short-array syntax on "bin" directory

This commit is contained in:
Luís Cobucci 2016-12-07 23:34:14 +01:00
parent 74c8a08828
commit c609072ce1
No known key found for this signature in database
GPG Key ID: 8042585A7DBC92E1

View File

@ -20,8 +20,10 @@
use Symfony\Component\Console\Helper\HelperSet;
use Doctrine\ORM\Tools\Console\ConsoleRunner;
$autoloadFiles = array(__DIR__ . '/../vendor/autoload.php',
__DIR__ . '/../../../autoload.php');
$autoloadFiles = [
__DIR__ . '/../vendor/autoload.php',
__DIR__ . '/../../../autoload.php'
];
foreach ($autoloadFiles as $autoloadFile) {
if (file_exists($autoloadFile)) {
@ -30,7 +32,7 @@ foreach ($autoloadFiles as $autoloadFile) {
}
}
$directories = array(getcwd(), getcwd() . DIRECTORY_SEPARATOR . 'config');
$directories = [getcwd(), getcwd() . DIRECTORY_SEPARATOR . 'config'];
$configFile = null;
foreach ($directories as $directory) {
@ -51,7 +53,7 @@ if ( ! is_readable($configFile)) {
exit(1);
}
$commands = array();
$commands = [];
$helperSet = require $configFile;