Skip to content

Commit a8a300b

Browse files
committed
Remove obsolete noinspection tags
1 parent 3396010 commit a8a300b

8 files changed

Lines changed: 0 additions & 20 deletions

files/lib/system/exporter/MyBB16xExporter.class.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1376,7 +1376,6 @@ public function exportACLs($offset, $limit)
13761376
$statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
13771377
$statement->execute();
13781378
while ($row = $statement->fetchArray()) {
1379-
/** @noinspection PhpVariableVariableInspection */
13801379
${$row['type']}[] = $row['id'];
13811380
}
13821381

files/lib/system/exporter/PhpBB31xExporter.class.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,6 @@ public function exportUserAvatars($offset, $limit)
688688
$statement->execute(['avatar_path', 'avatar_salt', 'avatar_gallery_path']);
689689
while ($row = $statement->fetchArray()) {
690690
$config_name = $row['config_name'];
691-
/** @noinspection PhpVariableVariableInspection */
692691
${$config_name} = $row['config_value'];
693692
}
694693
}
@@ -715,7 +714,6 @@ public function exportUserAvatars($offset, $limit)
715714
'userID' => $row['user_id'],
716715
];
717716

718-
/** @noinspection PhpUndefinedVariableInspection */
719717
ImportHandler::getInstance()
720718
->getImporter('com.woltlab.wcf.user.avatar')
721719
->import(
@@ -861,7 +859,6 @@ public function exportConversations($offset, $limit)
861859
'isDraft' => $row['isDraft'],
862860
];
863861

864-
/** @noinspection PhpUndefinedVariableInspection */
865862
ImportHandler::getInstance()
866863
->getImporter('com.woltlab.wcf.conversation')
867864
->import(
@@ -1718,7 +1715,6 @@ protected function exportAttachments($conversation, $offset, $limit)
17181715
$statement->execute(['upload_path']);
17191716
while ($row = $statement->fetchArray()) {
17201717
$config_name = $row['config_name'];
1721-
/** @noinspection PhpVariableVariableInspection */
17221718
${$config_name} = $row['config_value'];
17231719
}
17241720
}

files/lib/system/exporter/PhpBB3xExporter.class.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,6 @@ public function exportUserAvatars($offset, $limit)
623623
$statement->execute(['avatar_path', 'avatar_salt', 'avatar_gallery_path']);
624624
while ($row = $statement->fetchArray()) {
625625
$config_name = $row['config_name'];
626-
/** @noinspection PhpVariableVariableInspection */
627626
${$config_name} = $row['config_value'];
628627
}
629628
}
@@ -797,7 +796,6 @@ public function exportConversations($offset, $limit)
797796
'isDraft' => $row['isDraft'],
798797
];
799798

800-
/** @noinspection PhpUndefinedVariableInspection */
801799
ImportHandler::getInstance()
802800
->getImporter('com.woltlab.wcf.conversation')
803801
->import(
@@ -1650,7 +1648,6 @@ protected function exportAttachments($conversation, $offset, $limit)
16501648
$statement->execute(['upload_path']);
16511649
while ($row = $statement->fetchArray()) {
16521650
$config_name = $row['config_name'];
1653-
/** @noinspection PhpVariableVariableInspection */
16541651
${$config_name} = $row['config_value'];
16551652
}
16561653
}

files/lib/system/exporter/SMF2xExporter.class.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,6 @@ public function exportUserAvatars($offset, $limit)
692692
'userID' => $row['id_member'],
693693
];
694694

695-
/** @noinspection PhpUndefinedVariableInspection */
696695
ImportHandler::getInstance()
697696
->getImporter('com.woltlab.wcf.user.avatar')
698697
->import(

files/lib/system/exporter/VB3or4xExporter.class.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2055,7 +2055,6 @@ public function exportGalleryImages($offset, $limit)
20552055
'height' => $row['height'],
20562056
];
20572057

2058-
/** @noinspection PhpUndefinedVariableInspection */
20592058
$additionalData = [
20602059
'fileLocation' => $file,
20612060
];
@@ -2068,11 +2067,9 @@ public function exportGalleryImages($offset, $limit)
20682067
$additionalData
20692068
);
20702069
} catch (\Exception $e) {
2071-
/** @noinspection PhpUndefinedVariableInspection */
20722070
if ($vB === 3 && $this->readOption('album_dataloc') == self::GALLERY_DATABASE && $file) {
20732071
@\unlink($file);
20742072
}
2075-
/** @noinspection PhpUndefinedVariableInspection */
20762073
if ($vB === 4 && $this->readOption('attachfile') == self::ATTACHFILE_DATABASE && $file) {
20772074
@\unlink($file);
20782075
}
@@ -2191,12 +2188,10 @@ public function exportCalendarEvents($offset, $limit)
21912188
foreach (DateUtil::getAvailableTimezones() as $timezone) {
21922189
$dateTimeZone = new \DateTimeZone($timezone);
21932190
$offset = $dateTimeZone->getOffset(new \DateTime("now", $dateTimeZone));
2194-
/** @noinspection PhpIllegalArrayKeyTypeInspection */
21952191
$timezones[\round($offset / 360, 0)] = $timezone;
21962192
}
21972193

21982194
while ($row = $statement->fetchArray()) {
2199-
/** @noinspection PhpIllegalArrayKeyTypeInspection */
22002195
$eventDateData = [
22012196
'startTime' => $row['dateline_from'],
22022197
// vBulletin does not properly support endTime for recurring events

files/lib/system/exporter/WBB3xExporter.class.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1944,7 +1944,6 @@ public function exportACLs($offset, $limit)
19441944
$statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
19451945
$statement->execute();
19461946
while ($row = $statement->fetchArray()) {
1947-
/** @noinspection PhpVariableVariableInspection */
19481947
${$row['type']}[] = $row;
19491948
}
19501949

files/lib/system/exporter/XF12xExporter.class.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,6 @@ public function exportUsers($offset, $limit)
422422
$password = 'invalid:-:-';
423423
break;
424424
}
425-
/** @noinspection PhpUndefinedVariableInspection */
426425
$passwordUpdateStatement->execute([$password, $newUserID]);
427426
}
428427
}
@@ -1778,7 +1777,6 @@ public function getConfig()
17781777
'enableClickjackingProtection' => true,
17791778
'maxImageResizePixelCount' => 20000000,
17801779
];
1781-
/** @noinspection PhpIncludeInspection */
17821780
require($this->fileSystemPath . 'library/config.php');
17831781

17841782
return $config;
@@ -1814,7 +1812,6 @@ private static function fixBBCodes($message)
18141812
break;
18151813
}
18161814

1817-
/** @noinspection PhpUndefinedVariableInspection */
18181815
return '[media]' . $url;
18191816
};
18201817

files/lib/system/exporter/XF2xExporter.class.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2288,7 +2288,6 @@ public function getConfig()
22882288
'enableClickjackingProtection' => true,
22892289
'maxImageResizePixelCount' => 20000000,
22902290
];
2291-
/** @noinspection PhpIncludeInspection */
22922291
require($this->fileSystemPath . 'src/config.php');
22932292

22942293
return $config;
@@ -2324,7 +2323,6 @@ private static function fixBBCodes($message)
23242323
break;
23252324
}
23262325

2327-
/** @noinspection PhpUndefinedVariableInspection */
23282326
return '[media]' . $url;
23292327
};
23302328

0 commit comments

Comments
 (0)