From 44fe103b9c2f00a7d1476bee426f59e9968cc129 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Wed, 22 Dec 2021 11:43:45 -0300 Subject: [PATCH] Remove `@access` annotations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: MaurĂ­cio Meneghini Fauth --- libraries/classes/Bookmark.php | 10 -- libraries/classes/ConfigStorage/Relation.php | 28 ------ libraries/classes/Console.php | 6 -- .../Controllers/Table/SearchController.php | 7 -- libraries/classes/Core.php | 4 - libraries/classes/Database/CentralColumns.php | 2 - .../classes/Database/MultiTableQuery.php | 4 - libraries/classes/Database/Qbe.php | 27 ------ libraries/classes/Database/Search.php | 8 -- libraries/classes/Display/Results.php | 92 ------------------- libraries/classes/Encoding.php | 2 - libraries/classes/File.php | 66 +------------ libraries/classes/Font.php | 4 - libraries/classes/Footer.php | 4 - libraries/classes/Gis/GisFactory.php | 1 - libraries/classes/Gis/GisGeometry.php | 30 ------ .../classes/Gis/GisGeometryCollection.php | 18 ---- libraries/classes/Gis/GisLineString.php | 16 ---- libraries/classes/Gis/GisMultiLineString.php | 18 ---- libraries/classes/Gis/GisMultiPoint.php | 20 ---- libraries/classes/Gis/GisMultiPolygon.php | 20 ---- libraries/classes/Gis/GisPoint.php | 18 ---- libraries/classes/Gis/GisPolygon.php | 21 ----- libraries/classes/Gis/GisVisualization.php | 31 ------- libraries/classes/Header.php | 11 --- libraries/classes/Html/Generator.php | 16 ---- libraries/classes/Html/MySQLDocumentation.php | 4 - libraries/classes/Import.php | 24 ----- libraries/classes/Index.php | 2 - libraries/classes/IpAllowDeny.php | 12 --- libraries/classes/Menu.php | 2 - libraries/classes/Message.php | 10 -- libraries/classes/OpenDocument.php | 2 - libraries/classes/ParseAnalyze.php | 2 - libraries/classes/Partitioning/Partition.php | 5 - libraries/classes/Pdf.php | 2 - .../classes/Plugins/Export/Helpers/Pdf.php | 2 - libraries/classes/Plugins/Schema/Dia/Dia.php | 8 -- .../Plugins/Schema/Dia/DiaRelationSchema.php | 8 -- .../Plugins/Schema/Dia/RelationStatsDia.php | 4 - .../Plugins/Schema/Dia/TableStatsDia.php | 2 - libraries/classes/Plugins/Schema/Eps/Eps.php | 2 - .../Plugins/Schema/ExportRelationSchema.php | 12 --- libraries/classes/Plugins/Schema/Pdf/Pdf.php | 6 -- .../Plugins/Schema/Pdf/RelationStatsPdf.php | 2 - .../Plugins/Schema/Pdf/TableStatsPdf.php | 6 -- .../classes/Plugins/Schema/RelationStats.php | 2 - .../Plugins/Schema/Svg/RelationStatsSvg.php | 2 - libraries/classes/Plugins/Schema/Svg/Svg.php | 2 - .../Plugins/Schema/Svg/TableStatsSvg.php | 4 - libraries/classes/ResponseRenderer.php | 8 -- libraries/classes/Sanitize.php | 4 - libraries/classes/StorageEngine.php | 1 - libraries/classes/Table.php | 2 - libraries/classes/Theme.php | 62 ++----------- libraries/classes/ThemeManager.php | 18 +--- libraries/classes/Transformations.php | 5 - libraries/classes/Url.php | 8 -- libraries/classes/Util.php | 20 ---- test/classes/BookmarkTest.php | 2 - test/classes/Config/ConfigFileTest.php | 2 - test/classes/ConfigStorage/RelationTest.php | 2 - .../Table/IndexesControllerTest.php | 2 - .../Table/SearchControllerTest.php | 2 - test/classes/Database/QbeTest.php | 4 - test/classes/Database/SearchTest.php | 4 - test/classes/Dbal/DbiMysqliTest.php | 2 - test/classes/Display/ResultsTest.php | 4 - test/classes/Engines/BdbTest.php | 4 - test/classes/Engines/BinlogTest.php | 4 - test/classes/Engines/InnodbTest.php | 4 - test/classes/Engines/MemoryTest.php | 4 - test/classes/Engines/MrgMyisamTest.php | 4 - test/classes/Engines/MyisamTest.php | 4 - test/classes/Engines/NdbclusterTest.php | 4 - test/classes/Engines/PbxtTest.php | 4 - .../classes/Engines/PerformanceSchemaTest.php | 4 - test/classes/ErrorHandlerTest.php | 4 - test/classes/ErrorTest.php | 9 +- test/classes/FooterTest.php | 4 - .../classes/Gis/GisGeometryCollectionTest.php | 4 - test/classes/Gis/GisGeometryTest.php | 4 - test/classes/Gis/GisLineStringTest.php | 9 +- test/classes/Gis/GisMultiLineStringTest.php | 9 +- test/classes/Gis/GisMultiPointTest.php | 9 +- test/classes/Gis/GisMultiPolygonTest.php | 9 +- test/classes/Gis/GisPointTest.php | 9 +- test/classes/Gis/GisPolygonTest.php | 9 +- test/classes/LinterTest.php | 2 - test/classes/MessageTest.php | 7 +- test/classes/Navigation/NavigationTest.php | 4 - .../classes/Navigation/NavigationTreeTest.php | 4 - .../Nodes/NodeDatabaseChildTest.php | 4 - test/classes/Plugins/Import/ImportCsvTest.php | 4 - test/classes/Plugins/Import/ImportLdiTest.php | 9 +- .../Plugins/Import/ImportMediawikiTest.php | 4 - test/classes/Plugins/Import/ImportOdsTest.php | 4 - test/classes/Plugins/Import/ImportShpTest.php | 4 - test/classes/Plugins/Import/ImportSqlTest.php | 4 - test/classes/Plugins/Import/ImportXmlTest.php | 4 - .../Plugins/Schema/DiaRelationSchemaTest.php | 4 - .../Plugins/Schema/EpsRelationSchemaTest.php | 4 - .../Schema/ExportRelationSchemaTest.php | 4 - .../Plugins/Schema/PdfRelationSchemaTest.php | 4 - .../Plugins/Schema/SvgRelationSchemaTest.php | 4 - .../TransformationPluginsTest.php | 2 - test/classes/ScriptsTest.php | 4 - test/classes/StorageEngineTest.php | 4 - test/classes/Stubs/ResponseRenderer.php | 2 - test/classes/SystemDatabaseTest.php | 2 - test/classes/TrackerTest.php | 2 - test/classes/TrackingTest.php | 2 - test/classes/UrlTest.php | 2 - test/selenium/CreateRemoveUserTest.php | 2 - test/selenium/TestBase.php | 1 - 115 files changed, 22 insertions(+), 953 deletions(-) diff --git a/libraries/classes/Bookmark.php b/libraries/classes/Bookmark.php index 88c199d029..df2b86ffbc 100644 --- a/libraries/classes/Bookmark.php +++ b/libraries/classes/Bookmark.php @@ -116,8 +116,6 @@ class Bookmark /** * Adds a bookmark - * - * @access public */ public function save(): bool { @@ -139,8 +137,6 @@ class Bookmark /** * Deletes a bookmark - * - * @access public */ public function delete(): bool { @@ -206,8 +202,6 @@ class Bookmark * @param string $user Current user * * @return array|false the bookmark parameters for the current user - * - * @access public */ public static function getParams(string $user) { @@ -300,8 +294,6 @@ class Bookmark * @param string|false $db the current database name or false * * @return Bookmark[] the bookmarks list - * - * @access public */ public static function getList( DatabaseInterface $dbi, @@ -356,8 +348,6 @@ class Bookmark * @param bool $exact_user_match whether to ignore bookmarks with no user * * @return Bookmark|null the bookmark - * - * @access public */ public static function get( DatabaseInterface $dbi, diff --git a/libraries/classes/ConfigStorage/Relation.php b/libraries/classes/ConfigStorage/Relation.php index 3d7282b420..e173e4172a 100644 --- a/libraries/classes/ConfigStorage/Relation.php +++ b/libraries/classes/ConfigStorage/Relation.php @@ -70,8 +70,6 @@ class Relation * @param int $options query options * * @return mixed|bool the result set, or false if no result set - * - * @access public */ public function queryAsControlUser($sql, $show_error = true, $options = 0) { @@ -381,8 +379,6 @@ class Relation /** * Check whether column_info table input transformation * upgrade is required and try to upgrade silently - * - * @access public */ public function tryUpgradeTransformations(): bool { @@ -454,8 +450,6 @@ class Relation * @param string $source the source for foreign key information * * @return array db,table,column - * - * @access public */ public function getForeigners($db, $table, $column = '', $source = 'both') { @@ -527,8 +521,6 @@ class Relation * @param string $table the name of the table to check for * * @return string|false field name or false - * - * @access public */ public function getDisplayField($db, $table) { @@ -587,8 +579,6 @@ class Relation * @param string $table the name of the table to check for * * @return array [column_name] = comment - * - * @access public */ public function getComments($db, $table = ''): array { @@ -615,8 +605,6 @@ class Relation * Gets the comment for a db * * @param string $db the name of the db to check for - * - * @access public */ public function getDbComment(string $db): string { @@ -646,8 +634,6 @@ class Relation * Gets the comment for a db * * @return array comments - * - * @access public */ public function getDbComments() { @@ -679,8 +665,6 @@ class Relation * * @param string $db the name of the db * @param string $comment the value of the column - * - * @access public */ public function setDbComment($db, $comment = ''): bool { @@ -722,8 +706,6 @@ class Relation * @param string $table the name of the table * @param string $username the username * @param string $sqlquery the sql query - * - * @access public */ public function setHistory($db, $table, $username, $sqlquery): void { @@ -780,8 +762,6 @@ class Relation * @param string $username the username * * @return array|bool list of history items - * - * @access public */ public function getHistory($username) { @@ -823,8 +803,6 @@ class Relation * given user * * @param string $username the username - * - * @access public */ public function purgeHistory($username): void { @@ -865,8 +843,6 @@ class Relation * @param string $mode the needed mode * * @return string[] the