Replace array() with shorthand.

This commit is contained in:
Darko
2015-07-28 09:55:13 +02:00
parent 5657c27d18
commit 0ccb312ff5
78 changed files with 285 additions and 285 deletions
@@ -13,7 +13,7 @@ function SplitSQL($file, $delimiter = ';')
$file = fopen($file, 'r');
if (is_resource($file) === true) {
$query = array();
$query = [];
$db = new DB();
$dbsys = DB_TYPE;
$c = new ColorCLI();
@@ -60,7 +60,7 @@ function SplitSQL($file, $delimiter = ';')
}
if (is_string($query) === true) {
$query = array();
$query = [];
}
}
return fclose($file);
@@ -105,7 +105,7 @@ if (isset($os) && $os == "unix") {
$tmux = $t->get();
$currentversion = $tmux->sqlpatch;
$patched = 0;
$patches = array();
$patches = [];
$db = new DB();
$backedup = false;
$c = new ColorCLI();
@@ -152,7 +152,7 @@ if (isset($os) && $os == "unix") {
$tmux = $t->get();
$currentversion = $tmux->sqlpatch;
$patched = 0;
$patches = array();
$patches = [];
// Open the patch folder.
if (!isset($argv[1])) {