From b9c0463d960494cbfe0f04b3159c5ff4a467c446 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Wed, 30 May 2018 01:42:21 -0300 Subject: Use short array syntax instead of long array syntax MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replaces array() with []. Signed-off-by: MaurĂ­cio Meneghini Fauth --- tbl_change.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tbl_change.php') 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]; -- cgit v1.2.3