From c609072ce1f82bc30c437a24fbfe19a3f912352a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Cobucci?= Date: Wed, 7 Dec 2016 23:34:14 +0100 Subject: [PATCH] Use short-array syntax on "bin" directory --- bin/doctrine.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/bin/doctrine.php b/bin/doctrine.php index 81e016686..81d4e7bf2 100644 --- a/bin/doctrine.php +++ b/bin/doctrine.php @@ -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;