summaryrefslogtreecommitdiff
path: root/migrate_database.php
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-05-14 09:54:15 +0100
committerLester Caine <lester@lsces.co.uk>2026-05-14 09:54:15 +0100
commiteddcb429ad24572676fce289fcae645178a185ba (patch)
treede370ace1f2ad37cde7bd14f5180f942fed16ccf /migrate_database.php
parent70d2c5630264b09b8c5df8324b1895365ed74628 (diff)
downloadinstall-eddcb429ad24572676fce289fcae645178a185ba.tar.gz
install-eddcb429ad24572676fce289fcae645178a185ba.tar.bz2
install-eddcb429ad24572676fce289fcae645178a185ba.zip
php-cs-fixer tidies to php8.5 standards
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'migrate_database.php')
-rwxr-xr-xmigrate_database.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/migrate_database.php b/migrate_database.php
index b03f176..df6f090 100755
--- a/migrate_database.php
+++ b/migrate_database.php
@@ -37,7 +37,7 @@ if( isset( $_REQUEST['db_src'] ) ) {
$gBitSmarty->assign( 'name_dst', $_REQUEST['name_dst'] );
$gBitSmarty->assign( 'prefix_dst', $_REQUEST['prefix_dst'] );
- $skip_tables = isset($_REQUEST['skip_tables']) ? $_REQUEST['skip_tables'] : [];
+ $skip_tables = $_REQUEST['skip_tables'] ?? [];
$gBitSmarty->assign( 'skip_tables_select', $skip_tables );
$empty_tables = isset($_REQUEST['empty_tables']);
$gBitSmarty->assign( 'empty_tables', $empty_tables );
@@ -66,9 +66,8 @@ if (isset($_REQUEST['fSubmitDatabase']) || isset($_REQUEST['fUpdateTables'])) {
if (testDatabase()) {
$gBitSmarty->assign( 'error_src', true );
return;
- } else {
- $gDb_src = new BitDb();
}
+ $gDb_src = new BitDb();
$tables_src = $gDb_src->MetaTables();
@@ -87,9 +86,8 @@ if (isset($_REQUEST['fSubmitDatabase']) || isset($_REQUEST['fUpdateTables'])) {
if (testDatabase()) {
$gBitSmarty->assign( 'error_dst', true );
return;
- } else {
- $gDb_dst = new BitDb();
}
+ $gDb_dst = new BitDb();
require_once 'create_config_inc.php';
$createHash = [