diff options
author | Maurício Meneghini Fauth <mauriciofauth@gmail.com> | 2018-05-30 07:42:21 +0300 |
---|---|---|
committer | Maurício Meneghini Fauth <mauriciofauth@gmail.com> | 2018-05-30 07:42:21 +0300 |
commit | b9c0463d960494cbfe0f04b3159c5ff4a467c446 (patch) | |
tree | 9fe17f2cc230558fbff7a76b9386600ac37d0e8e /tbl_change.php | |
parent | 93bf3d0d1739ec3b15d0e0317ee18b222c58c462 (diff) |
Use short array syntax instead of long array syntax
Replaces array() with [].
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
Diffstat (limited to 'tbl_change.php')
-rw-r--r-- | tbl_change.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tbl_change.php b/tbl_change.php index bad60b84ce..bdfdc1d0ea 100644 --- a/tbl_change.php +++ b/tbl_change.php @@ -128,7 +128,7 @@ $has_blob_field = false; foreach ($table_columns as $column) { if ($insertEdit->isColumn( $column, - array('blob', 'tinyblob', 'mediumblob', 'longblob') + ['blob', 'tinyblob', 'mediumblob', 'longblob'] )) { $has_blob_field = true; break; @@ -157,10 +157,10 @@ if (! $cfg['ShowFieldTypesInDataEditView']) { $html_output .= $insertEdit->showTypeOrFunction('type', $url_params, false); } -$GLOBALS['plugin_scripts'] = array(); +$GLOBALS['plugin_scripts'] = []; foreach ($rows as $row_id => $current_row) { if (empty($current_row)) { - $current_row = array(); + $current_row = []; } $jsvkey = $row_id; @@ -169,7 +169,7 @@ foreach ($rows as $row_id => $current_row) { $current_result = (isset($result) && is_array($result) && isset($result[$row_id]) ? $result[$row_id] : $result); - $repopulate = array(); + $repopulate = []; $checked = true; if (isset($unsaved_values[$row_id])) { $repopulate = $unsaved_values[$row_id]; |