Remove unused local variables
authorMatthias Schmidt <gravatronics@live.com>
Sat, 21 May 2016 17:36:30 +0000 (19:36 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 21 May 2016 17:36:30 +0000 (19:36 +0200)
files/lib/system/exporter/MyBB16xExporter.class.php
files/lib/system/exporter/NodeBB0xRedisExporter.class.php
files/lib/system/exporter/PhpBB31xExporter.class.php
files/lib/system/exporter/PhpBB3xExporter.class.php
files/lib/system/exporter/WBB2xExporter.class.php
files/lib/system/exporter/XF12xExporter.class.php

index 8cd94374356f9e5cd5cbca23df5cabe521e82813..61b50cdbaaf9948d7c75b9eae12106f3fc91b87f 100644 (file)
@@ -589,7 +589,7 @@ class MyBB16xExporter extends AbstractExporter {
                while ($row = $statement->fetchArray()) {
                        $row['isDraft'] = $row['folder'] == 3 ? 1 : 0;
                        
-                       $conversationID = ImportHandler::getInstance()->getImporter('com.woltlab.wcf.conversation')->import($row['fromid'].'-'.$row['dateline'], [
+                       ImportHandler::getInstance()->getImporter('com.woltlab.wcf.conversation')->import($row['fromid'].'-'.$row['dateline'], [
                                'subject' => $row['subject'],
                                'time' => $row['dateline'],
                                'userID' => $row['fromid'],
index 9e42f4a3322aada13ff9366375cedf558038c088..d2e7e9169d036e24de7b90f94467aac0ef6aded2 100644 (file)
@@ -228,7 +228,6 @@ class NodeBB0xRedisExporter extends AbstractExporter {
                $boardIDs = $this->database->zrange('categories:cid', 0, -1);
                if (!$boardIDs) throw new SystemException('Could not fetch boardIDs');
                
-               $imported = [];
                foreach ($boardIDs as $boardID) {
                        $row = $this->database->hgetall('category:'.$boardID);
                        if (!$row) throw new SystemException('Invalid board');
index 05b2f31c240be15619c02005284201b60cff8c8d..441a5fad8a01dafcc04f7bb609fbb260ce929563 100644 (file)
@@ -424,7 +424,6 @@ class PhpBB31xExporter extends AbstractExporter {
                $statement = $this->database->prepareStatement($sql, $limit, $offset);
                $statement->execute(array_merge(['profilefields.type.dropdown'], $condition->getParameters()));
                while ($row = $statement->fetchArray()) {
-                       $selectOptions = '';
                        switch ($row['field_type']) {
                                case 'profilefields.type.int':
                                        $type = 'integer';
@@ -456,10 +455,10 @@ class PhpBB31xExporter extends AbstractExporter {
                                        $outputClass = 'wcf\system\option\user\SelectOptionsUserOptionOutput';
                                break;
                                case 'profilefields.type.googleplus':
-                               $outputClass = 'wcf\system\option\user\GooglePlusUserOptionOutput';
+                                       $outputClass = 'wcf\system\option\user\GooglePlusUserOptionOutput';
                                break;
                                case 'profilefields.type.url':
-                               $outputClass = 'wcf\system\option\user\URLUserOptionOutput';
+                                       $outputClass = 'wcf\system\option\user\URLUserOptionOutput';
                                break;
                                default:
                                        $outputClass = '';
index 25f0a51c024ce525b89f7f6c78e58d7e1f3124f7..1e8ada887a8ed822d7a23d6b5f38c7dd9c80371a 100644 (file)
@@ -379,7 +379,6 @@ class PhpBB3xExporter extends AbstractExporter {
                $statement = $this->database->prepareStatement($sql, $limit, $offset);
                $statement->execute([5]);
                while ($row = $statement->fetchArray()) {
-                       $selectOptions = '';
                        switch ($row['field_type']) {
                                case 1:
                                        $type = 'integer';
index f6a7b6e9ce54da0320b76d822c5a335cc3b170de..c960d29617f2079393698affc604722011de49ba 100644 (file)
@@ -485,7 +485,7 @@ class WBB2xExporter extends AbstractExporter {
                $statement = $this->database->prepareStatement($sql);
                $statement->execute([$offset + 1, $offset + $limit]);
                while ($row = $statement->fetchArray()) {
-                       $conversationID = ImportHandler::getInstance()->getImporter('com.woltlab.wcf.conversation')->import($row['privatemessageid'], [
+                       ImportHandler::getInstance()->getImporter('com.woltlab.wcf.conversation')->import($row['privatemessageid'], [
                                'subject' => $row['subject'],
                                'time' => $row['sendtime'],
                                'userID' => $row['senderid'],
index 093e3c9cda1f6410c0fef7e3bb1bac287f7575ed..efa4869626477e76047dd636a9302b2f10be80bf 100644 (file)
@@ -311,8 +311,7 @@ class XF12xExporter extends AbstractExporter {
                        }
                        
                        $languageCode = '';
-                       $countryCode = '';
-                       if ($row['language_code']) list($languageCode, $countryCode) = explode('-', $row['language_code'], 2);
+                       if ($row['language_code']) list($languageCode, ) = explode('-', $row['language_code'], 2);
                        
                        $additionalData = [
                                'groupIDs' => explode(',', $row['secondary_group_ids'].','.$row['user_group_id']),