Replace `global` keyword with `$GLOBALS`
commit1438cb211ea4b9660c609842ccebe68fb0c0e3a7
authorMaurício Meneghini Fauth <mauricio@fauth.dev>
Sat, 5 Mar 2022 06:58:15 +0000 (5 03:58 -0300)
committerMaurício Meneghini Fauth <mauricio@fauth.dev>
Mon, 7 Mar 2022 20:31:11 +0000 (7 17:31 -0300)
treeac7776bd2b13d9df71e12b160c0d133e84aecc64
parent0339dc09049310d2a99f7a32e221a936f0a04b13
Replace `global` keyword with `$GLOBALS`

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
311 files changed:
index.php
js/messages.php
libraries/classes/BrowseForeigners.php
libraries/classes/Command/CacheWarmupCommand.php
libraries/classes/Common.php
libraries/classes/Config.php
libraries/classes/Config/SpecialSchemaLinks.php
libraries/classes/ConfigStorage/Relation.php
libraries/classes/ConfigStorage/UserGroups.php
libraries/classes/Console.php
libraries/classes/Controllers/AbstractController.php
libraries/classes/Controllers/CheckRelationsController.php
libraries/classes/Controllers/Database/CentralColumnsController.php
libraries/classes/Controllers/Database/DesignerController.php
libraries/classes/Controllers/Database/EventsController.php
libraries/classes/Controllers/Database/ExportController.php
libraries/classes/Controllers/Database/ImportController.php
libraries/classes/Controllers/Database/Operations/CollationController.php
libraries/classes/Controllers/Database/OperationsController.php
libraries/classes/Controllers/Database/PrivilegesController.php
libraries/classes/Controllers/Database/QueryByExampleController.php
libraries/classes/Controllers/Database/RoutinesController.php
libraries/classes/Controllers/Database/SearchController.php
libraries/classes/Controllers/Database/SqlAutoCompleteController.php
libraries/classes/Controllers/Database/SqlController.php
libraries/classes/Controllers/Database/Structure/AddPrefixController.php
libraries/classes/Controllers/Database/Structure/AddPrefixTableController.php
libraries/classes/Controllers/Database/Structure/CentralColumns/AddController.php
libraries/classes/Controllers/Database/Structure/CentralColumns/MakeConsistentController.php
libraries/classes/Controllers/Database/Structure/CentralColumns/RemoveController.php
libraries/classes/Controllers/Database/Structure/ChangePrefixFormController.php
libraries/classes/Controllers/Database/Structure/CopyFormController.php
libraries/classes/Controllers/Database/Structure/CopyTableController.php
libraries/classes/Controllers/Database/Structure/CopyTableWithPrefixController.php
libraries/classes/Controllers/Database/Structure/DropFormController.php
libraries/classes/Controllers/Database/Structure/DropTableController.php
libraries/classes/Controllers/Database/Structure/EmptyFormController.php
libraries/classes/Controllers/Database/Structure/EmptyTableController.php
libraries/classes/Controllers/Database/Structure/FavoriteTableController.php
libraries/classes/Controllers/Database/Structure/RealRowCountController.php
libraries/classes/Controllers/Database/Structure/ReplacePrefixController.php
libraries/classes/Controllers/Database/StructureController.php
libraries/classes/Controllers/Database/TrackingController.php
libraries/classes/Controllers/Database/TriggersController.php
libraries/classes/Controllers/DatabaseController.php
libraries/classes/Controllers/ErrorReportController.php
libraries/classes/Controllers/Export/ExportController.php
libraries/classes/Controllers/Export/Template/CreateController.php
libraries/classes/Controllers/Export/Template/DeleteController.php
libraries/classes/Controllers/Export/Template/LoadController.php
libraries/classes/Controllers/Export/Template/UpdateController.php
libraries/classes/Controllers/GisDataEditorController.php
libraries/classes/Controllers/HomeController.php
libraries/classes/Controllers/Import/ImportController.php
libraries/classes/Controllers/Import/StatusController.php
libraries/classes/Controllers/LogoutController.php
libraries/classes/Controllers/NormalizationController.php
libraries/classes/Controllers/PhpInfoController.php
libraries/classes/Controllers/Preferences/ExportController.php
libraries/classes/Controllers/Preferences/FeaturesController.php
libraries/classes/Controllers/Preferences/ImportController.php
libraries/classes/Controllers/Preferences/MainPanelController.php
libraries/classes/Controllers/Preferences/ManageController.php
libraries/classes/Controllers/Preferences/NavigationController.php
libraries/classes/Controllers/Preferences/SqlController.php
libraries/classes/Controllers/Preferences/TwoFactorController.php
libraries/classes/Controllers/Server/BinlogController.php
libraries/classes/Controllers/Server/CollationsController.php
libraries/classes/Controllers/Server/Databases/CreateController.php
libraries/classes/Controllers/Server/Databases/DestroyController.php
libraries/classes/Controllers/Server/DatabasesController.php
libraries/classes/Controllers/Server/EnginesController.php
libraries/classes/Controllers/Server/ExportController.php
libraries/classes/Controllers/Server/ImportController.php
libraries/classes/Controllers/Server/PluginsController.php
libraries/classes/Controllers/Server/PrivilegesController.php
libraries/classes/Controllers/Server/ReplicationController.php
libraries/classes/Controllers/Server/ShowEngineController.php
libraries/classes/Controllers/Server/SqlController.php
libraries/classes/Controllers/Server/Status/Monitor/ChartingDataController.php
libraries/classes/Controllers/Server/Status/Monitor/GeneralLogController.php
libraries/classes/Controllers/Server/Status/Monitor/LogVarsController.php
libraries/classes/Controllers/Server/Status/Monitor/QueryAnalyzerController.php
libraries/classes/Controllers/Server/Status/Monitor/SlowLogController.php
libraries/classes/Controllers/Server/Status/MonitorController.php
libraries/classes/Controllers/Server/Status/ProcessesController.php
libraries/classes/Controllers/Server/Status/QueriesController.php
libraries/classes/Controllers/Server/Status/StatusController.php
libraries/classes/Controllers/Server/Status/VariablesController.php
libraries/classes/Controllers/Server/VariablesController.php
libraries/classes/Controllers/Sql/ColumnPreferencesController.php
libraries/classes/Controllers/Sql/EnumValuesController.php
libraries/classes/Controllers/Sql/RelationalValuesController.php
libraries/classes/Controllers/Sql/SetValuesController.php
libraries/classes/Controllers/Sql/SqlController.php
libraries/classes/Controllers/Table/AddFieldController.php
libraries/classes/Controllers/Table/ChangeController.php
libraries/classes/Controllers/Table/ChangeRowsController.php
libraries/classes/Controllers/Table/ChartController.php
libraries/classes/Controllers/Table/CreateController.php
libraries/classes/Controllers/Table/DeleteConfirmController.php
libraries/classes/Controllers/Table/DeleteRowsController.php
libraries/classes/Controllers/Table/DropColumnConfirmationController.php
libraries/classes/Controllers/Table/ExportController.php
libraries/classes/Controllers/Table/ExportRowsController.php
libraries/classes/Controllers/Table/FindReplaceController.php
libraries/classes/Controllers/Table/GetFieldController.php
libraries/classes/Controllers/Table/GisVisualizationController.php
libraries/classes/Controllers/Table/ImportController.php
libraries/classes/Controllers/Table/IndexRenameController.php
libraries/classes/Controllers/Table/IndexesController.php
libraries/classes/Controllers/Table/OperationsController.php
libraries/classes/Controllers/Table/PrivilegesController.php
libraries/classes/Controllers/Table/RecentFavoriteController.php
libraries/classes/Controllers/Table/ReplaceController.php
libraries/classes/Controllers/Table/SearchController.php
libraries/classes/Controllers/Table/SqlController.php
libraries/classes/Controllers/Table/Structure/AddIndexController.php
libraries/classes/Controllers/Table/Structure/AddKeyController.php
libraries/classes/Controllers/Table/Structure/CentralColumnsAddController.php
libraries/classes/Controllers/Table/Structure/CentralColumnsRemoveController.php
libraries/classes/Controllers/Table/Structure/ChangeController.php
libraries/classes/Controllers/Table/Structure/FulltextController.php
libraries/classes/Controllers/Table/Structure/PrimaryController.php
libraries/classes/Controllers/Table/Structure/SpatialController.php
libraries/classes/Controllers/Table/Structure/UniqueController.php
libraries/classes/Controllers/Table/StructureController.php
libraries/classes/Controllers/Table/TrackingController.php
libraries/classes/Controllers/Table/TriggersController.php
libraries/classes/Controllers/Table/ZoomSearchController.php
libraries/classes/Controllers/ThemeSetController.php
libraries/classes/Controllers/Transformation/WrapperController.php
libraries/classes/Controllers/UserPasswordController.php
libraries/classes/Controllers/View/CreateController.php
libraries/classes/Controllers/View/OperationsController.php
libraries/classes/Core.php
libraries/classes/Crypto/Crypto.php
libraries/classes/Database/Designer.php
libraries/classes/Database/Events.php
libraries/classes/Database/MultiTableQuery.php
libraries/classes/Database/Routines.php
libraries/classes/Database/Triggers.php
libraries/classes/DatabaseInterface.php
libraries/classes/DbTableExists.php
libraries/classes/Display/Results.php
libraries/classes/Engines/Innodb.php
libraries/classes/ErrorHandler.php
libraries/classes/Export.php
libraries/classes/Export/Options.php
libraries/classes/FileListing.php
libraries/classes/Footer.php
libraries/classes/Gis/GisVisualization.php
libraries/classes/Header.php
libraries/classes/Html/Generator.php
libraries/classes/Import.php
libraries/classes/Index.php
libraries/classes/InsertEdit.php
libraries/classes/IpAllowDeny.php
libraries/classes/ListDatabase.php
libraries/classes/Menu.php
libraries/classes/Navigation/Navigation.php
libraries/classes/Navigation/Nodes/Node.php
libraries/classes/Navigation/Nodes/NodeDatabase.php
libraries/classes/Navigation/Nodes/NodeDatabaseContainer.php
libraries/classes/Navigation/Nodes/NodeTable.php
libraries/classes/Operations.php
libraries/classes/Partitioning/Partition.php
libraries/classes/Plugins.php
libraries/classes/Plugins/Auth/AuthenticationConfig.php
libraries/classes/Plugins/Auth/AuthenticationCookie.php
libraries/classes/Plugins/Auth/AuthenticationHttp.php
libraries/classes/Plugins/AuthenticationPlugin.php
libraries/classes/Plugins/Export/ExportCodegen.php
libraries/classes/Plugins/Export/ExportCsv.php
libraries/classes/Plugins/Export/ExportHtmlword.php
libraries/classes/Plugins/Export/ExportJson.php
libraries/classes/Plugins/Export/ExportLatex.php
libraries/classes/Plugins/Export/ExportMediawiki.php
libraries/classes/Plugins/Export/ExportOds.php
libraries/classes/Plugins/Export/ExportOdt.php
libraries/classes/Plugins/Export/ExportPhparray.php
libraries/classes/Plugins/Export/ExportSql.php
libraries/classes/Plugins/Export/ExportTexytext.php
libraries/classes/Plugins/Export/ExportXml.php
libraries/classes/Plugins/Export/ExportYaml.php
libraries/classes/Plugins/Export/Helpers/Pdf.php
libraries/classes/Plugins/ExportPlugin.php
libraries/classes/Plugins/Import/ImportCsv.php
libraries/classes/Plugins/Import/ImportLdi.php
libraries/classes/Plugins/Import/ImportMediawiki.php
libraries/classes/Plugins/Import/ImportOds.php
libraries/classes/Plugins/Import/ImportShp.php
libraries/classes/Plugins/Import/ImportSql.php
libraries/classes/Plugins/Import/ImportXml.php
libraries/classes/Plugins/Import/ShapeFileImport.php
libraries/classes/Plugins/Import/Upload/UploadNoplugin.php
libraries/classes/Plugins/Import/Upload/UploadProgress.php
libraries/classes/Plugins/Import/Upload/UploadSession.php
libraries/classes/Plugins/Schema/ExportRelationSchema.php
libraries/classes/Plugins/Schema/Pdf/Pdf.php
libraries/classes/Plugins/Schema/Pdf/PdfRelationSchema.php
libraries/classes/Plugins/Schema/TableStats.php
libraries/classes/Plugins/Transformations/Abs/DownloadTransformationsPlugin.php
libraries/classes/Plugins/TwoFactorPlugin.php
libraries/classes/Query/Utilities.php
libraries/classes/RecentFavoriteTable.php
libraries/classes/Replication.php
libraries/classes/ReplicationGui.php
libraries/classes/ReplicationInfo.php
libraries/classes/ResponseRenderer.php
libraries/classes/Routing.php
libraries/classes/SavedSearches.php
libraries/classes/Server/Plugins.php
libraries/classes/Server/Privileges.php
libraries/classes/Server/Status/Data.php
libraries/classes/Server/Status/Monitor.php
libraries/classes/Sql.php
libraries/classes/SqlQueryForm.php
libraries/classes/StorageEngine.php
libraries/classes/Table.php
libraries/classes/Table/ColumnsDefinition.php
libraries/classes/Table/Indexes.php
libraries/classes/Template.php
libraries/classes/ThemeManager.php
libraries/classes/Tracker.php
libraries/classes/Tracking.php
libraries/classes/Transformations.php
libraries/classes/Twig/AssetExtension.php
libraries/classes/Twig/RelationExtension.php
libraries/classes/TwoFactor.php
libraries/classes/Url.php
libraries/classes/UrlRedirector.php
libraries/classes/UserPassword.php
libraries/classes/UserPreferences.php
libraries/classes/Util.php
libraries/classes/Utils/ForeignKey.php
libraries/classes/Utils/Gis.php
libraries/classes/Utils/HttpRequest.php
libraries/classes/Utils/SessionCache.php
libraries/classes/VersionInformation.php
phpcs.xml.dist
phpstan-baseline.neon
psalm-baseline.xml
psalm.xml
setup/index.php
setup/lib/common.inc.php
test/classes/AbstractNetworkTestCase.php
test/classes/AbstractTestCase.php
test/classes/Command/TwigLintCommandTest.php
test/classes/CommonTest.php
test/classes/Controllers/CheckRelationsControllerTest.php
test/classes/Controllers/Database/MultiTableQuery/TablesControllerTest.php
test/classes/Controllers/Database/PrivilegesControllerTest.php
test/classes/Controllers/Database/StructureControllerTest.php
test/classes/Controllers/Export/ExportControllerTest.php
test/classes/Controllers/Export/Template/CreateControllerTest.php
test/classes/Controllers/Export/Template/DeleteControllerTest.php
test/classes/Controllers/Export/Template/LoadControllerTest.php
test/classes/Controllers/Export/Template/UpdateControllerTest.php
test/classes/Controllers/Import/ImportControllerTest.php
test/classes/Controllers/NavigationControllerTest.php
test/classes/Controllers/NormalizationControllerTest.php
test/classes/Controllers/Server/Databases/DestroyControllerTest.php
test/classes/Controllers/Server/DatabasesControllerTest.php
test/classes/Controllers/Server/EnginesControllerTest.php
test/classes/Controllers/Server/ShowEngineControllerTest.php
test/classes/Controllers/Server/Status/Monitor/QueryAnalyzerControllerTest.php
test/classes/Controllers/Server/Status/QueriesControllerTest.php
test/classes/Controllers/Sql/EnumValuesControllerTest.php
test/classes/Controllers/Sql/SetValuesControllerTest.php
test/classes/Controllers/Table/AddFieldControllerTest.php
test/classes/Controllers/Table/DeleteRowsControllerTest.php
test/classes/Controllers/Table/ImportControllerTest.php
test/classes/Controllers/Table/OperationsControllerTest.php
test/classes/Controllers/Table/PrivilegesControllerTest.php
test/classes/Controllers/Table/ReplaceControllerTest.php
test/classes/Controllers/Table/SearchControllerTest.php
test/classes/CoreTest.php
test/classes/Crypto/CryptoTest.php
test/classes/Database/EventsTest.php
test/classes/Database/RoutinesTest.php
test/classes/Database/TriggersTest.php
test/classes/Display/ResultsTest.php
test/classes/Export/OptionsTest.php
test/classes/HeaderTest.php
test/classes/Html/GeneratorTest.php
test/classes/ImportTest.php
test/classes/OperationsTest.php
test/classes/Plugins/Auth/AuthenticationCookieTest.php
test/classes/Plugins/Export/ExportCsvTest.php
test/classes/Plugins/Export/ExportSqlTest.php
test/classes/Plugins/Export/ExportXmlTest.php
test/classes/Plugins/Import/ImportCsvTest.php
test/classes/Plugins/Import/ImportLdiTest.php
test/classes/Plugins/Import/ImportMediawikiTest.php
test/classes/Plugins/Import/ImportOdsTest.php
test/classes/Plugins/Import/ImportShpTest.php
test/classes/Plugins/Import/ImportSqlTest.php
test/classes/Plugins/Import/ImportXmlTest.php
test/classes/Plugins/Transformations/TransformationPluginsTest.php
test/classes/PluginsTest.php
test/classes/ProfilingTest.php
test/classes/SqlTest.php
test/classes/Stubs/DbiDummy.php
test/classes/Table/SearchTest.php
test/classes/TableTest.php
test/classes/TemplateTest.php
test/classes/ThemeTest.php
test/classes/TrackerTest.php
test/classes/UrlTest.php
test/classes/Utils/SessionCacheTest.php