function addExtensionNotes ($ext_ver) {
// Init notes/content
$out = '';
- $content = array();
+ $content = [];
// Is do we have verbose output enabled?
if ((!isExtensionActive('sql_patches')) || (isVerboseSqlEnabled())) {
// Getter for CSS files array
function getExtensionCssFiles () {
// By default no additional CSS files are found
- $cssFiles = array();
+ $cssFiles = [];
// Is the array there?
if (isset($GLOBALS['css_files'])) {
// Init CSS files array
function initExtensionCssFiles () {
// Simply init it
- $GLOBALS['css_files'] = array();
+ $GLOBALS['css_files'] = [];
}
// Add new entry
// Init array
if ((!isset($GLOBALS['ext_running_updates'][getCurrentExtensionName()])) || (!is_array($GLOBALS['ext_running_updates'][getCurrentExtensionName()]))) {
- $GLOBALS['ext_running_updates'][getCurrentExtensionName()] = array();
+ $GLOBALS['ext_running_updates'][getCurrentExtensionName()] = [];
} // END - if
// Remember it in the list of running updates
reportBug(__FUNCTION__, __LINE__, '() is called twice: currName=' . getCurrentExtensionName());
} // END - if
- $GLOBALS['ext_update_depends'][getCurrentExtensionName()] = array();
+ $GLOBALS['ext_update_depends'][getCurrentExtensionName()] = [];
// Init running updates array
initExtensionRuningUpdates();
function initExtensionRuningUpdates () {
// Auto-init ext_running_updates
if (!isset($GLOBALS['ext_running_updates'])) {
- $GLOBALS['ext_running_updates'] = array();
- $GLOBALS['ext_register_running'] = array();
+ $GLOBALS['ext_running_updates'] = [];
+ $GLOBALS['ext_register_running'] = [];
} // END - if
}
// Auto-init the array or if forced
if (($force === TRUE) || (!isset($GLOBALS['ext_sqls'][getCurrentExtensionName()]))) {
// Set the array
- $GLOBALS['ext_sqls'][getCurrentExtensionName()] = array();
+ $GLOBALS['ext_sqls'][getCurrentExtensionName()] = [];
// Initialize the generic array
initSqls();
// Is is the array there?
if ((!isset($GLOBALS['ext_sqls'][$currentName][$currentVersion])) || (!is_array($GLOBALS['ext_sqls'][$currentName][$currentVersion]))) {
// Init array
- $GLOBALS['ext_sqls'][$currentName][$currentVersion] = array();
+ $GLOBALS['ext_sqls'][$currentName][$currentVersion] = [];
} // END - if
// Is the SQL statement empty?
// Is the remove list there?
if (!isset($GLOBALS['ext_update_remove'])) {
// Then create it
- $GLOBALS['ext_update_remove'] = array();
+ $GLOBALS['ext_update_remove'] = [];
} // END - if
}