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

@@ -42,7 +42,7 @@ class ConnectionTest implements ControllerProviderInterface
$connection_ok = $db_ok = $is_databox = $is_appbox = $empty = false;
try {
$conn = new \connection_pdo('test', $hostname, $port, $user, $password, null, array(), false);
$conn = new \connection_pdo('test', $hostname, $port, $user, $password, null, [], false);
$connection_ok = true;
} catch (\Exception $e) {
@@ -50,7 +50,7 @@ class ConnectionTest implements ControllerProviderInterface
if ($dbname && $connection_ok === true) {
try {
$conn = new \connection_pdo('test', $hostname, $port, $user, $password, $dbname, array(), false);
$conn = new \connection_pdo('test', $hostname, $port, $user, $password, $dbname, [], false);
$db_ok = true;
$sql = "SHOW TABLE STATUS";
@@ -75,13 +75,13 @@ class ConnectionTest implements ControllerProviderInterface
}
}
$datas = array(
$datas = [
'connection' => $connection_ok
, 'database' => $db_ok
, 'is_empty' => $empty
, 'is_appbox' => $is_appbox
, 'is_databox' => $is_databox
);
];
return $app->json($datas);
});