summaryrefslogtreecommitdiffstatshomepage
path: root/core/includes/schema.inc
diff options
context:
space:
mode:
Diffstat (limited to 'core/includes/schema.inc')
-rw-r--r--core/includes/schema.inc14
1 files changed, 7 insertions, 7 deletions
diff --git a/core/includes/schema.inc b/core/includes/schema.inc
index aa3984b91ac..a2f9d23dc4f 100644
--- a/core/includes/schema.inc
+++ b/core/includes/schema.inc
@@ -28,9 +28,9 @@ const SCHEMA_UNINSTALLED = -1;
function drupal_get_schema_versions($module) {
$updates = &drupal_static(__FUNCTION__, NULL);
if (!isset($updates[$module])) {
- $updates = array();
+ $updates = [];
foreach (\Drupal::moduleHandler()->getModuleList() as $loaded_module => $filename) {
- $updates[$loaded_module] = array();
+ $updates[$loaded_module] = [];
}
// Prepare regular expression to match all possible defined hook_update_N().
@@ -74,15 +74,15 @@ function drupal_get_schema_versions($module) {
* module is not installed.
*/
function drupal_get_installed_schema_version($module, $reset = FALSE, $array = FALSE) {
- $versions = &drupal_static(__FUNCTION__, array());
+ $versions = &drupal_static(__FUNCTION__, []);
if ($reset) {
- $versions = array();
+ $versions = [];
}
if (!$versions) {
if (!$versions = \Drupal::keyValue('system.schema')->getAll()) {
- $versions = array();
+ $versions = [];
}
}
@@ -162,12 +162,12 @@ function drupal_get_module_schema($module, $table = NULL) {
if (isset($schema[$table])) {
return $schema[$table];
}
- return array();
+ return [];
}
elseif (!empty($schema)) {
return $schema;
}
- return array();
+ return [];
}
/**