diff --git a/libraries/classes/Advisor.php b/libraries/classes/Advisor.php index 1c220c1962..8cec9a2d74 100644 --- a/libraries/classes/Advisor.php +++ b/libraries/classes/Advisor.php @@ -8,11 +8,6 @@ declare(strict_types=1); namespace PhpMyAdmin; use Exception; -use PhpMyAdmin\Core; -use PhpMyAdmin\DatabaseInterface; -use PhpMyAdmin\SysInfo; -use PhpMyAdmin\Url; -use PhpMyAdmin\Util; use Symfony\Component\ExpressionLanguage\ExpressionLanguage; use Throwable; use function array_merge_recursive; diff --git a/libraries/classes/CentralColumns.php b/libraries/classes/CentralColumns.php index a96347fbd7..a97e859679 100644 --- a/libraries/classes/CentralColumns.php +++ b/libraries/classes/CentralColumns.php @@ -9,7 +9,6 @@ namespace PhpMyAdmin; use PhpMyAdmin\Charsets\Charset; use PhpMyAdmin\Charsets\Collation; use PhpMyAdmin\Html\Generator; -use PhpMyAdmin\Message; /** * PhpMyAdmin\CentralColumns class diff --git a/libraries/classes/CheckUserPrivileges.php b/libraries/classes/CheckUserPrivileges.php index 060f55fdad..fdf183dc34 100644 --- a/libraries/classes/CheckUserPrivileges.php +++ b/libraries/classes/CheckUserPrivileges.php @@ -6,9 +6,6 @@ declare(strict_types=1); namespace PhpMyAdmin; -use PhpMyAdmin\DatabaseInterface; -use PhpMyAdmin\Util; - /** * PhpMyAdmin\CheckUserPrivileges class */ diff --git a/libraries/classes/Config.php b/libraries/classes/Config.php index 0020466d26..2af4759f67 100644 --- a/libraries/classes/Config.php +++ b/libraries/classes/Config.php @@ -7,12 +7,6 @@ declare(strict_types=1); namespace PhpMyAdmin; use DirectoryIterator; -use PhpMyAdmin\Core; -use PhpMyAdmin\Error; -use PhpMyAdmin\LanguageManager; -use PhpMyAdmin\Message; -use PhpMyAdmin\ThemeManager; -use PhpMyAdmin\UserPreferences; use PhpMyAdmin\Utils\HttpRequest; /** diff --git a/libraries/classes/Config/Form.php b/libraries/classes/Config/Form.php index 8ac2999b2b..fec4c5414a 100644 --- a/libraries/classes/Config/Form.php +++ b/libraries/classes/Config/Form.php @@ -6,8 +6,6 @@ declare(strict_types=1); namespace PhpMyAdmin\Config; -use PhpMyAdmin\Config\ConfigFile; - /** * Base class for forms, loads default configuration options, checks allowed * values etc. diff --git a/libraries/classes/Config/PageSettings.php b/libraries/classes/Config/PageSettings.php index bb9f92e165..bf24196c1b 100644 --- a/libraries/classes/Config/PageSettings.php +++ b/libraries/classes/Config/PageSettings.php @@ -6,8 +6,6 @@ declare(strict_types=1); namespace PhpMyAdmin\Config; -use PhpMyAdmin\Config\ConfigFile; -use PhpMyAdmin\Config\FormDisplay; use PhpMyAdmin\Config\Forms\Page\PageFormList; use PhpMyAdmin\Core; use PhpMyAdmin\Message; diff --git a/libraries/classes/Config/ServerConfigChecks.php b/libraries/classes/Config/ServerConfigChecks.php index 1a62c97fa7..25ab135ada 100644 --- a/libraries/classes/Config/ServerConfigChecks.php +++ b/libraries/classes/Config/ServerConfigChecks.php @@ -6,8 +6,6 @@ declare(strict_types=1); namespace PhpMyAdmin\Config; -use PhpMyAdmin\Config\ConfigFile; -use PhpMyAdmin\Config\Descriptions; use PhpMyAdmin\Core; use PhpMyAdmin\Sanitize; use PhpMyAdmin\Setup\Index as SetupIndex; diff --git a/libraries/classes/Config/Validator.php b/libraries/classes/Config/Validator.php index e819024f5a..e5f9c79d55 100644 --- a/libraries/classes/Config/Validator.php +++ b/libraries/classes/Config/Validator.php @@ -6,7 +6,6 @@ declare(strict_types=1); namespace PhpMyAdmin\Config; -use PhpMyAdmin\Config\ConfigFile; use PhpMyAdmin\Core; use PhpMyAdmin\DatabaseInterface; use PhpMyAdmin\Util; diff --git a/libraries/classes/Console.php b/libraries/classes/Console.php index f4fccbf2fe..791a5f5fb0 100644 --- a/libraries/classes/Console.php +++ b/libraries/classes/Console.php @@ -6,10 +6,6 @@ declare(strict_types=1); namespace PhpMyAdmin; -use PhpMyAdmin\Bookmark; -use PhpMyAdmin\Relation; -use PhpMyAdmin\Template; - /** * Class used to output the console */ diff --git a/libraries/classes/Database/Designer/Common.php b/libraries/classes/Database/Designer/Common.php index 91e0958667..d0dedb096f 100644 --- a/libraries/classes/Database/Designer/Common.php +++ b/libraries/classes/Database/Designer/Common.php @@ -6,7 +6,6 @@ declare(strict_types=1); namespace PhpMyAdmin\Database\Designer; -use PhpMyAdmin\Database\Designer\DesignerTable; use PhpMyAdmin\DatabaseInterface; use PhpMyAdmin\Index; use PhpMyAdmin\Relation; diff --git a/libraries/classes/Display/Import.php b/libraries/classes/Display/Import.php index 191580f735..401aade410 100644 --- a/libraries/classes/Display/Import.php +++ b/libraries/classes/Display/Import.php @@ -9,7 +9,6 @@ namespace PhpMyAdmin\Display; use PhpMyAdmin\Charsets; use PhpMyAdmin\Charsets\Charset; use PhpMyAdmin\Core; -use PhpMyAdmin\Display\ImportAjax; use PhpMyAdmin\Encoding; use PhpMyAdmin\Message; use PhpMyAdmin\Plugins; diff --git a/libraries/classes/Encoding.php b/libraries/classes/Encoding.php index 2a67f7b882..526a0cbc70 100644 --- a/libraries/classes/Encoding.php +++ b/libraries/classes/Encoding.php @@ -6,9 +6,6 @@ declare(strict_types=1); namespace PhpMyAdmin; -use PhpMyAdmin\Core; -use PhpMyAdmin\Template; - /** * Encoding conversion helper class */ diff --git a/libraries/classes/Error.php b/libraries/classes/Error.php index 5867037aae..df110a8e00 100644 --- a/libraries/classes/Error.php +++ b/libraries/classes/Error.php @@ -6,7 +6,6 @@ declare(strict_types=1); namespace PhpMyAdmin; -use PhpMyAdmin\Message; use Throwable; /** diff --git a/libraries/classes/ErrorHandler.php b/libraries/classes/ErrorHandler.php index 8ec3657e2d..f665f108a0 100644 --- a/libraries/classes/ErrorHandler.php +++ b/libraries/classes/ErrorHandler.php @@ -6,10 +6,6 @@ declare(strict_types=1); namespace PhpMyAdmin; -use PhpMyAdmin\Error; -use PhpMyAdmin\Response; -use PhpMyAdmin\Url; - /** * handling errors */ diff --git a/libraries/classes/ErrorReport.php b/libraries/classes/ErrorReport.php index 876351953f..2dde4c727a 100644 --- a/libraries/classes/ErrorReport.php +++ b/libraries/classes/ErrorReport.php @@ -6,7 +6,6 @@ declare(strict_types=1); namespace PhpMyAdmin; -use PhpMyAdmin\Error; use PhpMyAdmin\Utils\HttpRequest; /** diff --git a/libraries/classes/File.php b/libraries/classes/File.php index 4d6d5fda9e..ce88da1f85 100644 --- a/libraries/classes/File.php +++ b/libraries/classes/File.php @@ -6,11 +6,6 @@ declare(strict_types=1); namespace PhpMyAdmin; -use PhpMyAdmin\Core; -use PhpMyAdmin\Message; -use PhpMyAdmin\Util; -use PhpMyAdmin\ZipExtension; - /** * File wrapper class * diff --git a/libraries/classes/IpAllowDeny.php b/libraries/classes/IpAllowDeny.php index 8d01a05000..73bf9f1467 100644 --- a/libraries/classes/IpAllowDeny.php +++ b/libraries/classes/IpAllowDeny.php @@ -7,8 +7,6 @@ declare(strict_types=1); namespace PhpMyAdmin; -use PhpMyAdmin\Core; - /** * PhpMyAdmin\IpAllowDeny class */ diff --git a/libraries/classes/Language.php b/libraries/classes/Language.php index 861b926337..9560a7b473 100644 --- a/libraries/classes/Language.php +++ b/libraries/classes/Language.php @@ -6,8 +6,6 @@ declare(strict_types=1); namespace PhpMyAdmin; -use PhpMyAdmin\LanguageManager; - /** * Language object */ diff --git a/libraries/classes/LanguageManager.php b/libraries/classes/LanguageManager.php index 649ffb1689..05cb3d7a61 100644 --- a/libraries/classes/LanguageManager.php +++ b/libraries/classes/LanguageManager.php @@ -6,10 +6,7 @@ declare(strict_types=1); namespace PhpMyAdmin; -use PhpMyAdmin\Core; use PhpMyAdmin\Html\MySQLDocumentation; -use PhpMyAdmin\Language; -use PhpMyAdmin\Template; /** * Language selection manager diff --git a/libraries/classes/ListDatabase.php b/libraries/classes/ListDatabase.php index 8b02560081..9c4c6b8188 100644 --- a/libraries/classes/ListDatabase.php +++ b/libraries/classes/ListDatabase.php @@ -6,9 +6,6 @@ declare(strict_types=1); namespace PhpMyAdmin; -use PhpMyAdmin\ListAbstract; -use PhpMyAdmin\Util; - /** * handles database lists * diff --git a/libraries/classes/Logging.php b/libraries/classes/Logging.php index 7ffdebc453..ea6a27264d 100644 --- a/libraries/classes/Logging.php +++ b/libraries/classes/Logging.php @@ -8,8 +8,6 @@ declare(strict_types=1); namespace PhpMyAdmin; -use PhpMyAdmin\Core; - /** * Misc logging functions */ diff --git a/libraries/classes/Message.php b/libraries/classes/Message.php index 93557e027f..789a7f2dcc 100644 --- a/libraries/classes/Message.php +++ b/libraries/classes/Message.php @@ -6,8 +6,6 @@ declare(strict_types=1); namespace PhpMyAdmin; -use PhpMyAdmin\Sanitize; - /** * a single message * diff --git a/libraries/classes/OpenDocument.php b/libraries/classes/OpenDocument.php index 64daf7f8ba..b22bf0b23a 100644 --- a/libraries/classes/OpenDocument.php +++ b/libraries/classes/OpenDocument.php @@ -6,8 +6,6 @@ declare(strict_types=1); namespace PhpMyAdmin; -use PhpMyAdmin\ZipExtension; - /** * Simplfied OpenDocument creator class */ diff --git a/libraries/classes/ParseAnalyze.php b/libraries/classes/ParseAnalyze.php index 1f3855799a..859f1ffc7a 100644 --- a/libraries/classes/ParseAnalyze.php +++ b/libraries/classes/ParseAnalyze.php @@ -6,7 +6,6 @@ declare(strict_types=1); namespace PhpMyAdmin; -use PhpMyAdmin\Response; use PhpMyAdmin\SqlParser\Utils\Query; /** diff --git a/libraries/classes/Partition.php b/libraries/classes/Partition.php index ee0f9f5c11..408e4d2bb0 100644 --- a/libraries/classes/Partition.php +++ b/libraries/classes/Partition.php @@ -6,8 +6,6 @@ declare(strict_types=1); namespace PhpMyAdmin; -use PhpMyAdmin\SubPartition; - /** * base Partition Class */ diff --git a/libraries/classes/Pdf.php b/libraries/classes/Pdf.php index e8de7ccd6b..1cbaaa9d3c 100644 --- a/libraries/classes/Pdf.php +++ b/libraries/classes/Pdf.php @@ -7,10 +7,6 @@ declare(strict_types=1); namespace PhpMyAdmin; use Exception; -use PhpMyAdmin\Core; -use PhpMyAdmin\Message; -use PhpMyAdmin\Response; -use PhpMyAdmin\Util; use TCPDF; use TCPDF_FONTS; diff --git a/libraries/classes/Plugins/IOTransformationsPlugin.php b/libraries/classes/Plugins/IOTransformationsPlugin.php index 3c7a364e02..d1cb292b7d 100644 --- a/libraries/classes/Plugins/IOTransformationsPlugin.php +++ b/libraries/classes/Plugins/IOTransformationsPlugin.php @@ -6,8 +6,6 @@ declare(strict_types=1); namespace PhpMyAdmin\Plugins; -use PhpMyAdmin\Plugins\TransformationsPlugin; - /** * Provides a common interface that will have to be implemented * by all of the Input/Output transformations plugins. diff --git a/libraries/classes/Plugins/Import/ImportLdi.php b/libraries/classes/Plugins/Import/ImportLdi.php index fbf33abb52..dd110befd4 100644 --- a/libraries/classes/Plugins/Import/ImportLdi.php +++ b/libraries/classes/Plugins/Import/ImportLdi.php @@ -7,7 +7,6 @@ declare(strict_types=1); namespace PhpMyAdmin\Plugins\Import; use PhpMyAdmin\Message; -use PhpMyAdmin\Plugins\Import\AbstractImportCsv; use PhpMyAdmin\Properties\Options\Items\BoolPropertyItem; use PhpMyAdmin\Properties\Options\Items\TextPropertyItem; use PhpMyAdmin\Util; diff --git a/libraries/classes/Plugins/Schema/Dia/DiaRelationSchema.php b/libraries/classes/Plugins/Schema/Dia/DiaRelationSchema.php index cc5f99fa8d..7f4a6948bd 100644 --- a/libraries/classes/Plugins/Schema/Dia/DiaRelationSchema.php +++ b/libraries/classes/Plugins/Schema/Dia/DiaRelationSchema.php @@ -6,7 +6,6 @@ declare(strict_types=1); namespace PhpMyAdmin\Plugins\Schema\Dia; -use PhpMyAdmin\Plugins\Schema\Dia\TableStatsDia; use PhpMyAdmin\Plugins\Schema\Eps\TableStatsEps; use PhpMyAdmin\Plugins\Schema\ExportRelationSchema; use PhpMyAdmin\Plugins\Schema\Pdf\TableStatsPdf; diff --git a/libraries/classes/Plugins/Schema/RelationStats.php b/libraries/classes/Plugins/Schema/RelationStats.php index 369219bb6f..c6867b2d12 100644 --- a/libraries/classes/Plugins/Schema/RelationStats.php +++ b/libraries/classes/Plugins/Schema/RelationStats.php @@ -6,8 +6,6 @@ declare(strict_types=1); namespace PhpMyAdmin\Plugins\Schema; -use PhpMyAdmin\Plugins\Schema\TableStats; - /** * Relations preferences/statistics * diff --git a/libraries/classes/Plugins/Schema/Svg/SvgRelationSchema.php b/libraries/classes/Plugins/Schema/Svg/SvgRelationSchema.php index 7d21a55e05..57c8382e84 100644 --- a/libraries/classes/Plugins/Schema/Svg/SvgRelationSchema.php +++ b/libraries/classes/Plugins/Schema/Svg/SvgRelationSchema.php @@ -10,8 +10,6 @@ use PhpMyAdmin\Plugins\Schema\Dia\TableStatsDia; use PhpMyAdmin\Plugins\Schema\Eps\TableStatsEps; use PhpMyAdmin\Plugins\Schema\ExportRelationSchema; use PhpMyAdmin\Plugins\Schema\Pdf\TableStatsPdf; -use PhpMyAdmin\Plugins\Schema\Svg\Svg; -use PhpMyAdmin\Plugins\Schema\Svg\TableStatsSvg; /** * RelationStatsSvg Relation Schema Class diff --git a/libraries/classes/RelationCleanup.php b/libraries/classes/RelationCleanup.php index 50aca74196..1745dd15cc 100644 --- a/libraries/classes/RelationCleanup.php +++ b/libraries/classes/RelationCleanup.php @@ -6,10 +6,6 @@ declare(strict_types=1); namespace PhpMyAdmin; -use PhpMyAdmin\DatabaseInterface; -use PhpMyAdmin\Relation; -use PhpMyAdmin\Util; - /** * PhpMyAdmin\RelationCleanup class */ diff --git a/libraries/classes/Response.php b/libraries/classes/Response.php index 6c8489f5a9..8fa9527386 100644 --- a/libraries/classes/Response.php +++ b/libraries/classes/Response.php @@ -6,12 +6,6 @@ declare(strict_types=1); namespace PhpMyAdmin; -use PhpMyAdmin\Core; -use PhpMyAdmin\Footer; -use PhpMyAdmin\Header; -use PhpMyAdmin\Message; -use PhpMyAdmin\OutputBuffering; - /** * Singleton class used to manage the rendering of pages in PMA */ diff --git a/libraries/classes/Sanitize.php b/libraries/classes/Sanitize.php index 9eef7d6fbe..4411d1f6b0 100644 --- a/libraries/classes/Sanitize.php +++ b/libraries/classes/Sanitize.php @@ -6,9 +6,7 @@ declare(strict_types=1); namespace PhpMyAdmin; -use PhpMyAdmin\Core; use PhpMyAdmin\Html\MySQLDocumentation; -use PhpMyAdmin\Util; /** * This class includes various sanitization methods that can be called statically diff --git a/libraries/classes/Session.php b/libraries/classes/Session.php index 91959d0795..4db627571c 100644 --- a/libraries/classes/Session.php +++ b/libraries/classes/Session.php @@ -8,11 +8,6 @@ declare(strict_types=1); namespace PhpMyAdmin; -use PhpMyAdmin\Config; -use PhpMyAdmin\Core; -use PhpMyAdmin\ErrorHandler; -use PhpMyAdmin\Util; - /** * Session class */ diff --git a/libraries/classes/Sql.php b/libraries/classes/Sql.php index 953900c135..335a098bb3 100644 --- a/libraries/classes/Sql.php +++ b/libraries/classes/Sql.php @@ -6,27 +6,13 @@ declare(strict_types=1); namespace PhpMyAdmin; -use PhpMyAdmin\Bookmark; -use PhpMyAdmin\Core; -use PhpMyAdmin\DatabaseInterface; use PhpMyAdmin\Display\Results as DisplayResults; use PhpMyAdmin\Html\Generator; use PhpMyAdmin\Html\MySQLDocumentation; -use PhpMyAdmin\Index; -use PhpMyAdmin\Message; -use PhpMyAdmin\Operations; -use PhpMyAdmin\ParseAnalyze; -use PhpMyAdmin\Relation; -use PhpMyAdmin\RelationCleanup; -use PhpMyAdmin\Response; use PhpMyAdmin\SqlParser\Statements\AlterStatement; use PhpMyAdmin\SqlParser\Statements\DropStatement; use PhpMyAdmin\SqlParser\Statements\SelectStatement; use PhpMyAdmin\SqlParser\Utils\Query; -use PhpMyAdmin\Table; -use PhpMyAdmin\Transformations; -use PhpMyAdmin\Url; -use PhpMyAdmin\Util; /** * Set of functions for the SQL executor diff --git a/libraries/classes/StorageEngine.php b/libraries/classes/StorageEngine.php index 845c8a6187..311300f42b 100644 --- a/libraries/classes/StorageEngine.php +++ b/libraries/classes/StorageEngine.php @@ -19,7 +19,6 @@ use PhpMyAdmin\Engines\Ndbcluster; use PhpMyAdmin\Engines\Pbxt; use PhpMyAdmin\Engines\PerformanceSchema; use PhpMyAdmin\Html\Generator; -use PhpMyAdmin\Util; /** * defines diff --git a/libraries/classes/SysInfo.php b/libraries/classes/SysInfo.php index 47e91e1e6e..a09bda35fd 100644 --- a/libraries/classes/SysInfo.php +++ b/libraries/classes/SysInfo.php @@ -10,8 +10,6 @@ declare(strict_types=1); namespace PhpMyAdmin; -use PhpMyAdmin\SysInfoBase; - /** * PhpMyAdmin\SysInfo class */ diff --git a/libraries/classes/SysInfoLinux.php b/libraries/classes/SysInfoLinux.php index 400709d4e0..481081640e 100644 --- a/libraries/classes/SysInfoLinux.php +++ b/libraries/classes/SysInfoLinux.php @@ -6,9 +6,6 @@ declare(strict_types=1); namespace PhpMyAdmin; -use PhpMyAdmin\SysInfo; -use PhpMyAdmin\SysInfoBase; - /** * Linux based SysInfo class */ diff --git a/libraries/classes/SysInfoSunOS.php b/libraries/classes/SysInfoSunOS.php index 38530891db..158e730170 100644 --- a/libraries/classes/SysInfoSunOS.php +++ b/libraries/classes/SysInfoSunOS.php @@ -6,8 +6,6 @@ declare(strict_types=1); namespace PhpMyAdmin; -use PhpMyAdmin\SysInfoBase; - /** * SunOS based SysInfo class */ diff --git a/libraries/classes/SysInfoWINNT.php b/libraries/classes/SysInfoWINNT.php index efdc80f274..a430863eda 100644 --- a/libraries/classes/SysInfoWINNT.php +++ b/libraries/classes/SysInfoWINNT.php @@ -7,7 +7,6 @@ declare(strict_types=1); namespace PhpMyAdmin; use COM; -use PhpMyAdmin\SysInfoBase; use function is_string; /** diff --git a/libraries/classes/SystemDatabase.php b/libraries/classes/SystemDatabase.php index 49cb3418ea..b4cad3b67a 100644 --- a/libraries/classes/SystemDatabase.php +++ b/libraries/classes/SystemDatabase.php @@ -7,9 +7,6 @@ declare(strict_types=1); namespace PhpMyAdmin; use mysqli_result; -use PhpMyAdmin\DatabaseInterface; -use PhpMyAdmin\Relation; -use PhpMyAdmin\Util; class SystemDatabase { diff --git a/libraries/classes/Table.php b/libraries/classes/Table.php index 2547277d8a..ca3ce01dd3 100644 --- a/libraries/classes/Table.php +++ b/libraries/classes/Table.php @@ -6,14 +6,9 @@ declare(strict_types=1); namespace PhpMyAdmin; -use PhpMyAdmin\DatabaseInterface; use PhpMyAdmin\Html\Generator; use PhpMyAdmin\Html\MySQLDocumentation; -use PhpMyAdmin\Index; -use PhpMyAdmin\Message; -use PhpMyAdmin\Plugins; use PhpMyAdmin\Plugins\Export\ExportSql; -use PhpMyAdmin\Relation; use PhpMyAdmin\SqlParser\Components\Expression; use PhpMyAdmin\SqlParser\Components\OptionsArray; use PhpMyAdmin\SqlParser\Context; @@ -22,7 +17,6 @@ use PhpMyAdmin\SqlParser\Statements\AlterStatement; use PhpMyAdmin\SqlParser\Statements\CreateStatement; use PhpMyAdmin\SqlParser\Statements\DropStatement; use PhpMyAdmin\SqlParser\Utils\Table as TableUtils; -use PhpMyAdmin\Util; /** * Handles everything related to tables diff --git a/libraries/classes/Theme.php b/libraries/classes/Theme.php index a21a42ee42..6705c9578e 100644 --- a/libraries/classes/Theme.php +++ b/libraries/classes/Theme.php @@ -6,9 +6,6 @@ declare(strict_types=1); namespace PhpMyAdmin; -use PhpMyAdmin\Template; -use PhpMyAdmin\ThemeManager; - /** * handles theme * diff --git a/libraries/classes/Tracker.php b/libraries/classes/Tracker.php index 5da0e9da25..17978653a0 100644 --- a/libraries/classes/Tracker.php +++ b/libraries/classes/Tracker.php @@ -6,10 +6,7 @@ declare(strict_types=1); namespace PhpMyAdmin; -use PhpMyAdmin\DatabaseInterface; -use PhpMyAdmin\Plugins; use PhpMyAdmin\Plugins\Export\ExportSql; -use PhpMyAdmin\Relation; use PhpMyAdmin\SqlParser\Parser; use PhpMyAdmin\SqlParser\Statements\AlterStatement; use PhpMyAdmin\SqlParser\Statements\CreateStatement; @@ -19,7 +16,6 @@ use PhpMyAdmin\SqlParser\Statements\InsertStatement; use PhpMyAdmin\SqlParser\Statements\RenameStatement; use PhpMyAdmin\SqlParser\Statements\TruncateStatement; use PhpMyAdmin\SqlParser\Statements\UpdateStatement; -use PhpMyAdmin\Util; /** * This class tracks changes on databases, tables and views. diff --git a/libraries/classes/Transformations.php b/libraries/classes/Transformations.php index 098b32ca74..7a3e65a5ae 100644 --- a/libraries/classes/Transformations.php +++ b/libraries/classes/Transformations.php @@ -16,10 +16,7 @@ declare(strict_types=1); namespace PhpMyAdmin; -use PhpMyAdmin\DatabaseInterface; use PhpMyAdmin\Plugins\TransformationsInterface; -use PhpMyAdmin\Relation; -use PhpMyAdmin\Util; /** * Transformations class diff --git a/libraries/classes/TwoFactor.php b/libraries/classes/TwoFactor.php index f6e17731e8..004e30c244 100644 --- a/libraries/classes/TwoFactor.php +++ b/libraries/classes/TwoFactor.php @@ -6,12 +6,10 @@ declare(strict_types=1); namespace PhpMyAdmin; -use PhpMyAdmin\Message; use PhpMyAdmin\Plugins\TwoFactor\Application; use PhpMyAdmin\Plugins\TwoFactor\Invalid; use PhpMyAdmin\Plugins\TwoFactor\Key; use PhpMyAdmin\Plugins\TwoFactorPlugin; -use PhpMyAdmin\UserPreferences; use PragmaRX\Google2FAQRCode\Google2FA; use Samyoul\U2F\U2FServer\U2FServer; diff --git a/libraries/classes/Types.php b/libraries/classes/Types.php index 4782cc5599..1ec22de80d 100644 --- a/libraries/classes/Types.php +++ b/libraries/classes/Types.php @@ -6,8 +6,6 @@ declare(strict_types=1); namespace PhpMyAdmin; -use PhpMyAdmin\DatabaseInterface; - /** * Class holding type definitions for MySQL and MariaDB. */ diff --git a/libraries/classes/UserPassword.php b/libraries/classes/UserPassword.php index 193bdd8dc7..eff530aacd 100644 --- a/libraries/classes/UserPassword.php +++ b/libraries/classes/UserPassword.php @@ -6,14 +6,8 @@ declare(strict_types=1); namespace PhpMyAdmin; -use PhpMyAdmin\Core; use PhpMyAdmin\Html\Generator; -use PhpMyAdmin\Message; -use PhpMyAdmin\Response; use PhpMyAdmin\Server\Privileges; -use PhpMyAdmin\Template; -use PhpMyAdmin\Url; -use PhpMyAdmin\Util; /** * Functions for user password diff --git a/libraries/classes/UserPreferences.php b/libraries/classes/UserPreferences.php index c8e7d5155e..7ef95d35f0 100644 --- a/libraries/classes/UserPreferences.php +++ b/libraries/classes/UserPreferences.php @@ -8,12 +8,6 @@ namespace PhpMyAdmin; use PhpMyAdmin\Config\ConfigFile; use PhpMyAdmin\Config\Forms\User\UserFormList; -use PhpMyAdmin\Core; -use PhpMyAdmin\Message; -use PhpMyAdmin\Relation; -use PhpMyAdmin\Template; -use PhpMyAdmin\Url; -use PhpMyAdmin\Util; /** * Functions for displaying user preferences pages diff --git a/test/classes/AdvisorTest.php b/test/classes/AdvisorTest.php index 26373ccb5d..bb746ea036 100644 --- a/test/classes/AdvisorTest.php +++ b/test/classes/AdvisorTest.php @@ -8,7 +8,6 @@ namespace PhpMyAdmin\Tests; use PhpMyAdmin\Advisor; use PhpMyAdmin\Config; -use PhpMyAdmin\Tests\PmaTestCase; use Symfony\Component\ExpressionLanguage\ExpressionLanguage; /** diff --git a/test/classes/ConfigTest.php b/test/classes/ConfigTest.php index 2e207c50cc..ed96cacdfe 100644 --- a/test/classes/ConfigTest.php +++ b/test/classes/ConfigTest.php @@ -9,7 +9,6 @@ declare(strict_types=1); namespace PhpMyAdmin\Tests; use PhpMyAdmin\Config; -use PhpMyAdmin\Tests\PmaTestCase; use PHPUnit\Framework\Exception; /** diff --git a/test/classes/CoreTest.php b/test/classes/CoreTest.php index bb12c00095..f4b9a5cddd 100644 --- a/test/classes/CoreTest.php +++ b/test/classes/CoreTest.php @@ -9,7 +9,6 @@ namespace PhpMyAdmin\Tests; use PhpMyAdmin\Config; use PhpMyAdmin\Core; use PhpMyAdmin\Sanitize; -use PhpMyAdmin\Tests\PmaTestCase; use stdClass; /** diff --git a/test/classes/DatabaseInterfaceTest.php b/test/classes/DatabaseInterfaceTest.php index f2c8b6573e..8b6f0ff125 100644 --- a/test/classes/DatabaseInterfaceTest.php +++ b/test/classes/DatabaseInterfaceTest.php @@ -7,7 +7,6 @@ declare(strict_types=1); namespace PhpMyAdmin\Tests; use PhpMyAdmin\DatabaseInterface; -use PhpMyAdmin\Tests\PmaTestCase; use PhpMyAdmin\Tests\Stubs\DbiDummy; use PhpMyAdmin\Util; use stdClass; diff --git a/test/classes/ErrorHandlerTest.php b/test/classes/ErrorHandlerTest.php index 15745ea78d..3e5a772e83 100644 --- a/test/classes/ErrorHandlerTest.php +++ b/test/classes/ErrorHandlerTest.php @@ -7,7 +7,6 @@ declare(strict_types=1); namespace PhpMyAdmin\Tests; use PhpMyAdmin\ErrorHandler; -use PhpMyAdmin\Tests\PmaTestCase; use ReflectionClass; /** diff --git a/test/classes/ErrorTest.php b/test/classes/ErrorTest.php index 63c1dd007d..b7d776e09b 100644 --- a/test/classes/ErrorTest.php +++ b/test/classes/ErrorTest.php @@ -7,7 +7,6 @@ declare(strict_types=1); namespace PhpMyAdmin\Tests; use PhpMyAdmin\Error; -use PhpMyAdmin\Tests\PmaTestCase; /** * Error class testing. diff --git a/test/classes/FileTest.php b/test/classes/FileTest.php index 5f74513ef9..d6e52a3d2d 100644 --- a/test/classes/FileTest.php +++ b/test/classes/FileTest.php @@ -7,7 +7,6 @@ declare(strict_types=1); namespace PhpMyAdmin\Tests; use PhpMyAdmin\File; -use PhpMyAdmin\Tests\PmaTestCase; /** * tests for PhpMyAdmin\File class diff --git a/test/classes/FontTest.php b/test/classes/FontTest.php index 5c54847be9..bf6fc29ed7 100644 --- a/test/classes/FontTest.php +++ b/test/classes/FontTest.php @@ -7,7 +7,6 @@ declare(strict_types=1); namespace PhpMyAdmin\Tests; use PhpMyAdmin\Font; -use PhpMyAdmin\Tests\PmaTestCase; /** * Tests for PhpMyAdmin\Font class diff --git a/test/classes/FooterTest.php b/test/classes/FooterTest.php index ee3552e75a..b2c38556a5 100644 --- a/test/classes/FooterTest.php +++ b/test/classes/FooterTest.php @@ -9,7 +9,6 @@ namespace PhpMyAdmin\Tests; use PhpMyAdmin\Config; use PhpMyAdmin\ErrorHandler; use PhpMyAdmin\Footer; -use PhpMyAdmin\Tests\PmaTestCase; use ReflectionClass; /** diff --git a/test/classes/Gis/GisLineStringTest.php b/test/classes/Gis/GisLineStringTest.php index cd09b8666f..fc160c8f9b 100644 --- a/test/classes/Gis/GisLineStringTest.php +++ b/test/classes/Gis/GisLineStringTest.php @@ -7,7 +7,6 @@ declare(strict_types=1); namespace PhpMyAdmin\Tests\Gis; use PhpMyAdmin\Gis\GisLineString; -use PhpMyAdmin\Tests\Gis\GisGeomTestCase; use TCPDF; /** diff --git a/test/classes/Gis/GisMultiLineStringTest.php b/test/classes/Gis/GisMultiLineStringTest.php index 839a7bfe06..9d20f3d19a 100644 --- a/test/classes/Gis/GisMultiLineStringTest.php +++ b/test/classes/Gis/GisMultiLineStringTest.php @@ -7,7 +7,6 @@ declare(strict_types=1); namespace PhpMyAdmin\Tests\Gis; use PhpMyAdmin\Gis\GisMultiLineString; -use PhpMyAdmin\Tests\Gis\GisGeomTestCase; use TCPDF; /** diff --git a/test/classes/Gis/GisMultiPointTest.php b/test/classes/Gis/GisMultiPointTest.php index 0052640eb8..66f383b4a2 100644 --- a/test/classes/Gis/GisMultiPointTest.php +++ b/test/classes/Gis/GisMultiPointTest.php @@ -7,7 +7,6 @@ declare(strict_types=1); namespace PhpMyAdmin\Tests\Gis; use PhpMyAdmin\Gis\GisMultiPoint; -use PhpMyAdmin\Tests\Gis\GisGeomTestCase; use TCPDF; /** diff --git a/test/classes/Gis/GisMultiPolygonTest.php b/test/classes/Gis/GisMultiPolygonTest.php index dae7dd6a91..87751d608d 100644 --- a/test/classes/Gis/GisMultiPolygonTest.php +++ b/test/classes/Gis/GisMultiPolygonTest.php @@ -7,7 +7,6 @@ declare(strict_types=1); namespace PhpMyAdmin\Tests\Gis; use PhpMyAdmin\Gis\GisMultiPolygon; -use PhpMyAdmin\Tests\Gis\GisGeomTestCase; use TCPDF; /** diff --git a/test/classes/Gis/GisPointTest.php b/test/classes/Gis/GisPointTest.php index a1bb3b8fa1..27bc4d448f 100644 --- a/test/classes/Gis/GisPointTest.php +++ b/test/classes/Gis/GisPointTest.php @@ -7,7 +7,6 @@ declare(strict_types=1); namespace PhpMyAdmin\Tests\Gis; use PhpMyAdmin\Gis\GisPoint; -use PhpMyAdmin\Tests\Gis\GisGeomTestCase; use TCPDF; /** diff --git a/test/classes/Gis/GisPolygonTest.php b/test/classes/Gis/GisPolygonTest.php index 5643ee155c..439bfb97f7 100644 --- a/test/classes/Gis/GisPolygonTest.php +++ b/test/classes/Gis/GisPolygonTest.php @@ -7,7 +7,6 @@ declare(strict_types=1); namespace PhpMyAdmin\Tests\Gis; use PhpMyAdmin\Gis\GisPolygon; -use PhpMyAdmin\Tests\Gis\GisGeomTestCase; use TCPDF; /** diff --git a/test/classes/HeaderTest.php b/test/classes/HeaderTest.php index d6bcd52e04..f9cf98d88f 100644 --- a/test/classes/HeaderTest.php +++ b/test/classes/HeaderTest.php @@ -9,7 +9,6 @@ namespace PhpMyAdmin\Tests; use PhpMyAdmin\Config; use PhpMyAdmin\Core; use PhpMyAdmin\Header; -use PhpMyAdmin\Tests\PmaTestCase; use ReflectionProperty; /** diff --git a/test/classes/IndexTest.php b/test/classes/IndexTest.php index ace5ff6e42..b1d4b6ced1 100644 --- a/test/classes/IndexTest.php +++ b/test/classes/IndexTest.php @@ -7,7 +7,6 @@ declare(strict_types=1); namespace PhpMyAdmin\Tests; use PhpMyAdmin\Index; -use PhpMyAdmin\Tests\PmaTestCase; /** * Test for Index class diff --git a/test/classes/LanguageTest.php b/test/classes/LanguageTest.php index d994767302..d8da1071ec 100644 --- a/test/classes/LanguageTest.php +++ b/test/classes/LanguageTest.php @@ -7,7 +7,6 @@ declare(strict_types=1); namespace PhpMyAdmin\Tests; use PhpMyAdmin\LanguageManager; -use PhpMyAdmin\Tests\PmaTestCase; /** * Tests behaviour of PMA_Advisor class diff --git a/test/classes/LinterTest.php b/test/classes/LinterTest.php index 91fb975e92..98e0cf8cd1 100644 --- a/test/classes/LinterTest.php +++ b/test/classes/LinterTest.php @@ -7,7 +7,6 @@ declare(strict_types=1); namespace PhpMyAdmin\Tests; use PhpMyAdmin\Linter; -use PhpMyAdmin\Tests\PmaTestCase; /** * Tests for PhpMyAdmin\Linter diff --git a/test/classes/ListDatabaseTest.php b/test/classes/ListDatabaseTest.php index 3f98128d67..febea6bb7c 100644 --- a/test/classes/ListDatabaseTest.php +++ b/test/classes/ListDatabaseTest.php @@ -7,7 +7,6 @@ declare(strict_types=1); namespace PhpMyAdmin\Tests; use PhpMyAdmin\ListDatabase; -use PhpMyAdmin\Tests\PmaTestCase; use ReflectionClass; /** diff --git a/test/classes/MenuTest.php b/test/classes/MenuTest.php index 8e3f64a727..7977757d3d 100644 --- a/test/classes/MenuTest.php +++ b/test/classes/MenuTest.php @@ -8,7 +8,6 @@ namespace PhpMyAdmin\Tests; use PhpMyAdmin\Core; use PhpMyAdmin\Menu; -use PhpMyAdmin\Tests\PmaTestCase; /** * Test for Menu class diff --git a/test/classes/MessageTest.php b/test/classes/MessageTest.php index 50c13dd19e..d2623b4348 100644 --- a/test/classes/MessageTest.php +++ b/test/classes/MessageTest.php @@ -7,7 +7,6 @@ declare(strict_types=1); namespace PhpMyAdmin\Tests; use PhpMyAdmin\Message; -use PhpMyAdmin\Tests\PmaTestCase; /** * Test for Message class diff --git a/test/classes/PdfTest.php b/test/classes/PdfTest.php index 5ea075bdf7..329e822008 100644 --- a/test/classes/PdfTest.php +++ b/test/classes/PdfTest.php @@ -8,7 +8,6 @@ namespace PhpMyAdmin\Tests; use PhpMyAdmin\Config; use PhpMyAdmin\Pdf; -use PhpMyAdmin\Tests\PmaTestCase; /** * tests for Pdf class diff --git a/test/classes/Properties/Plugins/ExportPluginPropertiesTest.php b/test/classes/Properties/Plugins/ExportPluginPropertiesTest.php index 60ff304b63..681796fa5c 100644 --- a/test/classes/Properties/Plugins/ExportPluginPropertiesTest.php +++ b/test/classes/Properties/Plugins/ExportPluginPropertiesTest.php @@ -7,7 +7,6 @@ declare(strict_types=1); namespace PhpMyAdmin\Tests\Properties\Plugins; use PhpMyAdmin\Properties\Plugins\ExportPluginProperties; -use PhpMyAdmin\Tests\Properties\Plugins\ImportPluginPropertiesTest; /** * Tests for PhpMyAdmin\Properties\Plugins\ExportPluginProperties class. Extends PMA_ImportPluginProperties_Tests diff --git a/test/classes/ScriptsTest.php b/test/classes/ScriptsTest.php index 4a2fe626b2..b5c55422b0 100644 --- a/test/classes/ScriptsTest.php +++ b/test/classes/ScriptsTest.php @@ -7,7 +7,6 @@ declare(strict_types=1); namespace PhpMyAdmin\Tests; use PhpMyAdmin\Scripts; -use PhpMyAdmin\Tests\PmaTestCase; use ReflectionProperty; /** diff --git a/test/classes/StorageEngineTest.php b/test/classes/StorageEngineTest.php index fb82cd22d8..cef628c76a 100644 --- a/test/classes/StorageEngineTest.php +++ b/test/classes/StorageEngineTest.php @@ -7,7 +7,6 @@ declare(strict_types=1); namespace PhpMyAdmin\Tests; use PhpMyAdmin\StorageEngine; -use PhpMyAdmin\Tests\PmaTestCase; /** * Tests for StorageEngine.php diff --git a/test/classes/SystemDatabaseTest.php b/test/classes/SystemDatabaseTest.php index 7a6ddff850..5aeb2ee6ed 100644 --- a/test/classes/SystemDatabaseTest.php +++ b/test/classes/SystemDatabaseTest.php @@ -7,7 +7,6 @@ declare(strict_types=1); namespace PhpMyAdmin\Tests; use PhpMyAdmin\SystemDatabase; -use PhpMyAdmin\Tests\PmaTestCase; /** * Tests for libraries/SystemDatabase.php diff --git a/test/classes/TableTest.php b/test/classes/TableTest.php index 8779994b39..76227da217 100644 --- a/test/classes/TableTest.php +++ b/test/classes/TableTest.php @@ -10,7 +10,6 @@ use PhpMyAdmin\DatabaseInterface; use PhpMyAdmin\Index; use PhpMyAdmin\Relation; use PhpMyAdmin\Table; -use PhpMyAdmin\Tests\PmaTestCase; use PhpMyAdmin\Tests\Stubs\DbiDummy; use ReflectionClass; use stdClass; diff --git a/test/classes/TemplateTest.php b/test/classes/TemplateTest.php index 10decc36e8..c3dfb2e5d6 100644 --- a/test/classes/TemplateTest.php +++ b/test/classes/TemplateTest.php @@ -7,7 +7,6 @@ declare(strict_types=1); namespace PhpMyAdmin\Tests; use PhpMyAdmin\Template; -use PhpMyAdmin\Tests\PmaTestCase; use Twig\Error\LoaderError; /** diff --git a/test/classes/ThemeManagerTest.php b/test/classes/ThemeManagerTest.php index 5e985ba9d5..67daab40e3 100644 --- a/test/classes/ThemeManagerTest.php +++ b/test/classes/ThemeManagerTest.php @@ -7,7 +7,6 @@ declare(strict_types=1); namespace PhpMyAdmin\Tests; use PhpMyAdmin\Config; -use PhpMyAdmin\Tests\PmaTestCase; use PhpMyAdmin\ThemeManager; /** diff --git a/test/classes/ThemeTest.php b/test/classes/ThemeTest.php index 280a71f67b..8572e60891 100644 --- a/test/classes/ThemeTest.php +++ b/test/classes/ThemeTest.php @@ -7,7 +7,6 @@ declare(strict_types=1); namespace PhpMyAdmin\Tests; use PhpMyAdmin\Config; -use PhpMyAdmin\Tests\PmaTestCase; use PhpMyAdmin\Theme; /** diff --git a/test/classes/TrackerTest.php b/test/classes/TrackerTest.php index a4c5bd65d6..98557d9187 100644 --- a/test/classes/TrackerTest.php +++ b/test/classes/TrackerTest.php @@ -7,7 +7,6 @@ declare(strict_types=1); namespace PhpMyAdmin\Tests; use PhpMyAdmin\DatabaseInterface; -use PhpMyAdmin\Tests\PmaTestCase; use PhpMyAdmin\Tracker; use PhpMyAdmin\Util; use ReflectionClass; diff --git a/test/classes/TypesTest.php b/test/classes/TypesTest.php index 578b2d4ac1..5464f9fea9 100644 --- a/test/classes/TypesTest.php +++ b/test/classes/TypesTest.php @@ -6,7 +6,6 @@ declare(strict_types=1); namespace PhpMyAdmin\Tests; -use PhpMyAdmin\Tests\PmaTestCase; use PhpMyAdmin\Types; /** diff --git a/test/classes/UserPreferencesHeaderTest.php b/test/classes/UserPreferencesHeaderTest.php index 39a5d49a9d..2223bb3ac1 100644 --- a/test/classes/UserPreferencesHeaderTest.php +++ b/test/classes/UserPreferencesHeaderTest.php @@ -9,7 +9,6 @@ namespace PhpMyAdmin\Tests; use PhpMyAdmin\DatabaseInterface; use PhpMyAdmin\Relation; use PhpMyAdmin\Template; -use PhpMyAdmin\Tests\PmaTestCase; use PhpMyAdmin\UserPreferencesHeader; use Throwable; use Twig_Error_Loader; diff --git a/test/classes/UserPreferencesTest.php b/test/classes/UserPreferencesTest.php index 34f4aba4ff..1606a8d15e 100644 --- a/test/classes/UserPreferencesTest.php +++ b/test/classes/UserPreferencesTest.php @@ -9,7 +9,6 @@ namespace PhpMyAdmin\Tests; use PhpMyAdmin\Config\ConfigFile; use PhpMyAdmin\DatabaseInterface; use PhpMyAdmin\Message; -use PhpMyAdmin\Tests\PmaTestCase; use PhpMyAdmin\Url; use PhpMyAdmin\UserPreferences; diff --git a/test/classes/VersionInformationTest.php b/test/classes/VersionInformationTest.php index ac07f0b51f..27cb0eeac0 100644 --- a/test/classes/VersionInformationTest.php +++ b/test/classes/VersionInformationTest.php @@ -6,7 +6,6 @@ declare(strict_types=1); namespace PhpMyAdmin\Tests; -use PhpMyAdmin\Tests\PmaTestCase; use PhpMyAdmin\VersionInformation; use stdClass; diff --git a/test/classes/ZipExtensionTest.php b/test/classes/ZipExtensionTest.php index 56b07a0239..aca792e3f7 100644 --- a/test/classes/ZipExtensionTest.php +++ b/test/classes/ZipExtensionTest.php @@ -6,7 +6,6 @@ declare(strict_types=1); namespace PhpMyAdmin\Tests; -use PhpMyAdmin\Tests\PmaTestCase; use PhpMyAdmin\ZipExtension; use ZipArchive;