summaryrefslogtreecommitdiffstats
path: root/core/command
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@owncloud.com>2014-04-11 21:46:02 +0200
committerAndreas Fischer <bantu@owncloud.com>2014-04-11 21:46:02 +0200
commit94522586c1717a55a2cc0f052f32ed9389c659fc (patch)
tree34dd7220c052aff02f1141ca0d9d86bcf543721a /core/command
parent731571491f04c9a836b5f413d13f67571f1fe0b9 (diff)
downloadnextcloud-server-94522586c1717a55a2cc0f052f32ed9389c659fc.tar.gz
nextcloud-server-94522586c1717a55a2cc0f052f32ed9389c659fc.zip
Better variable names for table arrays.
Diffstat (limited to 'core/command')
-rw-r--r--core/command/db/converttype.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/command/db/converttype.php b/core/command/db/converttype.php
index 47e824a3b1b..863c739918d 100644
--- a/core/command/db/converttype.php
+++ b/core/command/db/converttype.php
@@ -129,10 +129,10 @@ class ConvertType extends Command {
$fromTables = $this->getTables($fromDB);
// warn/fail if there are more tables in 'from' database
- $tables = array_diff($fromTables, $toTables);
- if (!empty($tables)) {
+ $extraFromTables = array_diff($fromTables, $toTables);
+ if (!empty($extraFromTables)) {
$output->writeln('<comment>The following tables will not be converted:</comment>');
- $output->writeln($tables);
+ $output->writeln($extraFromTables);
if (!$input->getOption('all-apps')) {
$output->writeln('<comment>Please note that tables belonging to available but currently not installed apps</comment>');
$output->writeln('<comment>can be included by specifying the --all-apps option.</comment>');
@@ -147,8 +147,8 @@ class ConvertType extends Command {
return;
}
}
- $tables = array_intersect($toTables, $fromTables);
- $this->convertDB($fromDB, $toDB, $tables, $input, $output);
+ $intersectingTables = array_intersect($toTables, $fromTables);
+ $this->convertDB($fromDB, $toDB, $intersectingTables, $input, $output);
}
protected function createSchema(Connection $toDB, InputInterface $input, OutputInterface $output) {