Remove useless return type annotations

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
Maurício Meneghini Fauth 2020-01-23 13:03:29 -03:00
parent 6584b01824
commit 206199105e
288 changed files with 0 additions and 1678 deletions

View File

@ -263,8 +263,6 @@ class Advisor
*
* @param string $description description of an error.
* @param Throwable $exception exception raised
*
* @return void
*/
public function storeError(string $description, Throwable $exception): void
{
@ -278,8 +276,6 @@ class Advisor
/**
* Executes advisor rules
*
* @return bool
*/
public function runRules(): bool
{
@ -354,8 +350,6 @@ class Advisor
* Escapes percent string to be used in format string.
*
* @param string $str string to escape
*
* @return string
*/
public static function escapePercent(string $str): string
{
@ -368,8 +362,6 @@ class Advisor
* @param string $str the string
* @param string $param the parameters
*
* @return string
*
* @throws Exception
*/
public function translate(string $str, ?string $param = null): string
@ -408,8 +400,6 @@ class Advisor
* @param string $type type of rule
* @param array $rule rule itself
*
* @return void
*
* @throws Exception
*/
public function addRule(string $type, array $rule): void

View File

@ -71,8 +71,6 @@ class Bookmark
/**
* Returns the ID of the bookmark
*
* @return int
*/
public function getId(): int
{
@ -81,8 +79,6 @@ class Bookmark
/**
* Returns the database of the bookmark
*
* @return string
*/
public function getDatabase(): string
{
@ -91,8 +87,6 @@ class Bookmark
/**
* Returns the user whom the bookmark belongs to
*
* @return string
*/
public function getUser(): string
{
@ -101,8 +95,6 @@ class Bookmark
/**
* Returns the label of the bookmark
*
* @return string
*/
public function getLabel(): string
{
@ -111,8 +103,6 @@ class Bookmark
/**
* Returns the query
*
* @return string
*/
public function getQuery(): string
{
@ -276,8 +266,6 @@ class Bookmark
* @param DatabaseInterface $dbi DatabaseInterface object
* @param string $user Current user
* @param array $row Resource used to build the bookmark
*
* @return Bookmark
*/
protected static function createFromRow(
DatabaseInterface $dbi,

View File

@ -160,8 +160,6 @@ class BrowseForeigners
* @param array $foreignData foreign column data
* @param string|null $fieldkey field key
* @param string $current_value current columns's value
*
* @return string
*/
public function getHtmlForRelationalFieldSelection(
string $db,
@ -307,8 +305,6 @@ class BrowseForeigners
* Function to get html for the goto page option
*
* @param array|null $foreignData foreign data
*
* @return string
*/
private function getHtmlForGotoPage(?array $foreignData): string
{
@ -343,8 +339,6 @@ class BrowseForeigners
* Function to get foreign limit
*
* @param string|null $foreignShowAll foreign navigation
*
* @return string
*/
public function getForeignLimit(?string $foreignShowAll): ?string
{

View File

@ -234,8 +234,6 @@ class CentralColumns
/**
* return error message to be displayed if central columns
* configuration storage is not completely configured
*
* @return Message
*/
private function configErrorMessage(): Message
{
@ -927,8 +925,6 @@ class CentralColumns
*
* @param string $pmaThemeImage pma theme image url
* @param string $text_dir url for text directory
*
* @return string
*/
public function getTableFooter(string $pmaThemeImage, string $text_dir): string
{
@ -973,8 +969,6 @@ class CentralColumns
* This method separates them.
*
* @param array $columns_list columns list
*
* @return void
*/
private function handleColumnExtra(array &$columns_list): void
{

View File

@ -69,8 +69,6 @@ class Charsets
*
* @param DatabaseInterface $dbi DatabaseInterface instance
* @param bool $disableIs Disable use of INFORMATION_SCHEMA
*
* @return void
*/
private static function loadCharsets(DatabaseInterface $dbi, bool $disableIs): void
{
@ -104,8 +102,6 @@ class Charsets
*
* @param DatabaseInterface $dbi DatabaseInterface instance
* @param bool $disableIs Disable use of INFORMATION_SCHEMA
*
* @return void
*/
private static function loadCollations(DatabaseInterface $dbi, bool $disableIs): void
{
@ -143,8 +139,6 @@ class Charsets
*
* @param DatabaseInterface $dbi DatabaseInterface instance
* @param bool $disableIs Disable use of INFORMATION_SCHEMA
*
* @return Charset
*/
public static function getServerCharset(DatabaseInterface $dbi, bool $disableIs): Charset
{
@ -192,8 +186,6 @@ class Charsets
* @param DatabaseInterface $dbi DatabaseInterface instance
* @param bool $disableIs Disable use of INFORMATION_SCHEMA
* @param string|null $name Collation name
*
* @return Collation|null
*/
public static function findCollationByName(DatabaseInterface $dbi, bool $disableIs, ?string $name): ?Collation
{

View File

@ -101,8 +101,6 @@ final class Collation
/**
* @param array $state State obtained from the database server
*
* @return self
*/
public static function fromServer(array $state): self
{

View File

@ -87,8 +87,6 @@ class CheckUserPrivileges
* @param string $show_grants_str string containing grants for user
* @param string $show_grants_dbname name of db extracted from grant string
* @param string $show_grants_tblname name of table extracted from grant string
*
* @return void
*/
public function checkRequiredPrivilegesForAdjust(
string $show_grants_str,
@ -157,8 +155,6 @@ class CheckUserPrivileges
* (no control user needed) and we don't have to try any other method for
* detection
*
* @return void
*
* @todo fix to get really all privileges, not only explicitly defined for this user
* from MySQL manual: (https://dev.mysql.com/doc/refman/5.0/en/show-grants.html)
* SHOW GRANTS displays only the privileges granted explicitly to the named
@ -336,8 +332,6 @@ class CheckUserPrivileges
/**
* Get user's global privileges and some db-specific privileges
*
* @return void
*/
public function getPrivileges(): void
{

View File

@ -41,8 +41,6 @@ class AdvisoryRulesCommand extends Command
/**
* @param InputInterface $input input
* @param OutputInterface $output output
*
* @return int
*/
protected function execute(InputInterface $input, OutputInterface $output): int
{
@ -86,8 +84,6 @@ class AdvisoryRulesCommand extends Command
* @param array $rules rules array
* @param int $index rule index
* @param string $type rule type
*
* @return void
*/
private function addMessage(string $file, array $rules, int $index, string $type): void
{

View File

@ -143,8 +143,6 @@ class Config
/**
* sets system and application settings
*
* @return void
*/
public function checkSystem(): void
{
@ -166,8 +164,6 @@ class Config
/**
* whether to use gzip output compression or not
*
* @return void
*/
public function checkOutputCompression(): void
{
@ -187,8 +183,6 @@ class Config
* Sets the client platform based on user agent
*
* @param string $user_agent the user agent
*
* @return void
*/
private function _setClientPlatform(string $user_agent): void
{
@ -212,8 +206,6 @@ class Config
* Based on a phpBuilder article:
*
* @see http://www.phpbuilder.net/columns/tim20000821.php
*
* @return void
*/
public function checkClient(): void
{
@ -319,8 +311,6 @@ class Config
/**
* Whether GD2 is present
*
* @return void
*/
public function checkGd2(): void
{
@ -353,8 +343,6 @@ class Config
/**
* Whether the Web server php is running on is IIS
*
* @return void
*/
public function checkWebServer(): void
{
@ -372,8 +360,6 @@ class Config
/**
* Whether the os php is running on is windows or not
*
* @return void
*/
public function checkWebServerOs(): void
{
@ -395,8 +381,6 @@ class Config
* detects if Git revision
*
* @param string $git_location (optional) verified git directory
*
* @return bool
*/
public function isGitRevision(&$git_location = null): bool
{
@ -458,8 +442,6 @@ class Config
/**
* detects Git revision, if running inside repo
*
* @return void
*/
public function checkGitRevision(): void
{
@ -858,8 +840,6 @@ class Config
* should be called on object creation
*
* @param string $source config file
*
* @return bool
*/
public function load(?string $source = null): bool
{
@ -934,8 +914,6 @@ class Config
/**
* Sets the connection collation
*
* @return void
*/
private function _setConnectionCollation(): void
{
@ -950,8 +928,6 @@ class Config
/**
* Loads user preferences and merges them with current config
* must be called after control connection has been established
*
* @return void
*/
public function loadUserPreferences(): void
{
@ -1127,8 +1103,6 @@ class Config
* set source
*
* @param string $source source
*
* @return void
*/
public function setSource(string $source): void
{
@ -1182,8 +1156,6 @@ class Config
/**
* verifies the permissions on config file (if asked by configuration)
* (must be called after config.inc.php has been merged)
*
* @return void
*/
public function checkPermissions(): void
{
@ -1209,8 +1181,6 @@ class Config
/**
* Checks for errors
* (must be called after config.inc.php has been merged)
*
* @return void
*/
public function checkErrors(): void
{
@ -1256,8 +1226,6 @@ class Config
*
* @param string $setting configuration option
* @param mixed $value new value for configuration option
*
* @return void
*/
public function set(string $setting, $value): void
{
@ -1299,8 +1267,6 @@ class Config
/**
* checks if upload is enabled
*
* @return void
*/
public function checkUpload(): void
{
@ -1322,8 +1288,6 @@ class Config
* Used with permission from Moodle (https://moodle.org/) by Martin Dougiamas
*
* this section generates $max_upload_size in bytes
*
* @return void
*/
public function checkUploadSize(): void
{
@ -1345,8 +1309,6 @@ class Config
* Checks if protocol is https
*
* This function checks if the https protocol on the active connection.
*
* @return bool
*/
public function isHttps(): bool
{
@ -1386,8 +1348,6 @@ class Config
/**
* Get phpMyAdmin root path
*
* @return string
*/
public function getRootPath(): string
{
@ -1433,8 +1393,6 @@ class Config
/**
* enables backward compatibility
*
* @return void
*/
public function enableBc(): void
{
@ -1578,8 +1536,6 @@ class Config
* Get the real cookie name
*
* @param string $cookieName The name of the cookie
*
* @return string
*/
public function getCookieName(string $cookieName): string
{
@ -1601,8 +1557,6 @@ class Config
/**
* Error handler to catch fatal errors when loading configuration
* file
*
* @return void
*/
public static function fatalErrorHandler(): void
{
@ -1632,8 +1586,6 @@ class Config
*
* @param string $filename File to check and render
* @param string $id Div ID
*
* @return string
*/
private static function _renderCustom(string $filename, string $id): string
{
@ -1650,8 +1602,6 @@ class Config
/**
* Renders user configured footer
*
* @return string
*/
public static function renderFooter(): string
{
@ -1660,8 +1610,6 @@ class Config
/**
* Renders user configured footer
*
* @return string
*/
public static function renderHeader(): string
{
@ -1672,8 +1620,6 @@ class Config
* Returns temporary dir path
*
* @param string $name Directory name
*
* @return string|null
*/
public function getTempDir(string $name): ?string
{
@ -1702,8 +1648,6 @@ class Config
/**
* Returns temporary directory
*
* @return string|null
*/
public function getUploadTempDir(): ?string
{
@ -1726,8 +1670,6 @@ class Config
/**
* Selects server based on request parameters.
*
* @return int
*/
public function selectServer(): int
{
@ -1782,8 +1724,6 @@ class Config
/**
* Checks whether Servers configuration is valid and possibly apply fixups.
*
* @return void
*/
public function checkServers(): void
{

View File

@ -51,8 +51,6 @@ class FormDisplayTemplate
* @param string $action default: $_SERVER['REQUEST_URI']
* @param string $method 'post' or 'get'
* @param array|null $hiddenFields array of form hidden fields (key: field name)
*
* @return string
*/
public function displayFormTop(
$action = null,
@ -89,8 +87,6 @@ class FormDisplayTemplate
* ({@link self::displayFieldsetTop}), with values being tab titles.
*
* @param array $tabs tab names
*
* @return string
*/
public function displayTabsTop(array $tabs): string
{
@ -119,8 +115,6 @@ class FormDisplayTemplate
* @param string $description description shown on top of fieldset
* @param array|null $errors error messages to display
* @param array $attributes optional extra attributes of fieldset
*
* @return string
*/
public function displayFieldsetTop(
$title = '',
@ -165,8 +159,6 @@ class FormDisplayTemplate
* @param string $description verbose description
* @param bool $valueIsDefault whether value is default
* @param array|null $opts see above description
*
* @return string
*/
public function displayInput(
$path,
@ -406,8 +398,6 @@ class FormDisplayTemplate
* Display group header
*
* @param string $headerText Text of header
*
* @return string
*/
public function displayGroupHeader(string $headerText): string
{
@ -426,8 +416,6 @@ class FormDisplayTemplate
/**
* Display group footer
*
* @return void
*/
public function displayGroupFooter(): void
{
@ -438,8 +426,6 @@ class FormDisplayTemplate
* Displays bottom part of a fieldset
*
* @param bool $showButtons Whether show submit and reset button
*
* @return string
*/
public function displayFieldsetBottom(bool $showButtons = true): string
{
@ -451,8 +437,6 @@ class FormDisplayTemplate
/**
* Closes form tabs
*
* @return string
*/
public function displayTabsBottom(): string
{
@ -461,8 +445,6 @@ class FormDisplayTemplate
/**
* Displays bottom part of the form
*
* @return string
*/
public function displayFormBottom(): string
{
@ -475,8 +457,6 @@ class FormDisplayTemplate
* @param string $fieldId ID of field to validate
* @param string|array $validators validators callback
* @param array $jsArray will be updated with javascript code
*
* @return void
*/
public function addJsValidate($fieldId, $validators, array &$jsArray): void
{
@ -496,8 +476,6 @@ class FormDisplayTemplate
* Displays JavaScript code
*
* @param array $jsArray lines of javascript code
*
* @return string
*/
public function displayJavascript(array $jsArray): string
{

View File

@ -51,8 +51,6 @@ class Console
* we are servicing an ajax request
*
* @param bool $isAjax Whether we are servicing an ajax request
*
* @return void
*/
public function setAjax(bool $isAjax): void
{
@ -61,8 +59,6 @@ class Console
/**
* Disables the rendering of the footer
*
* @return void
*/
public function disable(): void
{
@ -72,8 +68,6 @@ class Console
/**
* Renders the bookmark content
*
* @return string
*
* @access public
*/
public static function getBookmarkContent(): string
@ -119,8 +113,6 @@ class Console
/**
* Renders the console
*
* @return string
*
* @access public
*/
public function getDisplay(): string

View File

@ -30,8 +30,6 @@ class CheckRelationsController extends AbstractController
/**
* @param array $params Request parameters
*
* @return string
*/
public function index(array $params): string
{

View File

@ -41,8 +41,6 @@ class DataDictionaryController extends AbstractController
/**
* @param array $params Request parameters
*
* @return string
*/
public function index(array $params): string
{

View File

@ -28,8 +28,6 @@ class MultiTableQueryController extends AbstractController
/**
* @param array $params Request parameters
*
* @return void
*/
public function displayResults(array $params): void
{

View File

@ -35,8 +35,6 @@ class PrivilegesController extends AbstractController
/**
* @param array $params Request parameters
*
* @return string
*/
public function index(array $params): string
{

View File

@ -40,8 +40,6 @@ class RoutinesController extends AbstractController
/**
* @param array $params Request parameters
*
* @return void
*/
public function index(array $params): void
{

View File

@ -93,8 +93,6 @@ class StructureController extends AbstractController
* Retrieves database information for further use
*
* @param string $subPart Page part name
*
* @return void
*/
private function getDatabaseInfo(string $subPart): void
{
@ -326,8 +324,6 @@ class StructureController extends AbstractController
/**
* Handles actions related to multiple tables
*
* @return void
*/
public function multiSubmitAction(): void
{
@ -854,8 +850,6 @@ class StructureController extends AbstractController
* Function to check if a table is already in favorite list.
*
* @param string $currentTable current table
*
* @return bool
*/
protected function checkFavoriteTable(string $currentTable): bool
{

View File

@ -292,8 +292,6 @@ class HomeController extends AbstractController
/**
* @param array $params Request parameters
*
* @return void
*/
public function setTheme(array $params): void
{
@ -310,8 +308,6 @@ class HomeController extends AbstractController
/**
* @param array $params Request parameters
*
* @return void
*/
public function setCollationConnection(array $params): void
{

View File

@ -17,8 +17,6 @@ class LintController extends AbstractController
{
/**
* @param array $params Request parameters
*
* @return void
*/
public function index(array $params): void
{

View File

@ -49,8 +49,6 @@ class BinlogController extends AbstractController
* Index action
*
* @param array $params Request params
*
* @return string
*/
public function index(array $params): string
{
@ -128,8 +126,6 @@ class BinlogController extends AbstractController
* @param string $log Binary log file name
* @param int $position Position to display
* @param int $maxRows Maximum number of rows
*
* @return string
*/
private function getSqlQuery(
string $log,

View File

@ -296,8 +296,6 @@ class DatabasesController extends AbstractController
*
* @param string|null $sortBy sort by
* @param string|null $sortOrder sort order
*
* @return void
*/
private function setSortDetails(?string $sortBy, ?string $sortOrder): void
{

View File

@ -17,8 +17,6 @@ class EnginesController extends AbstractController
{
/**
* Index action
*
* @return string
*/
public function index(): string
{
@ -33,8 +31,6 @@ class EnginesController extends AbstractController
* Displays details about a given Storage Engine
*
* @param array $params Request params
*
* @return string
*/
public function show(array $params): string
{

View File

@ -40,8 +40,6 @@ class PluginsController extends AbstractController
/**
* Index action
*
* @return string
*/
public function index(): string
{

View File

@ -37,8 +37,6 @@ class ReplicationController extends AbstractController
/**
* @param array $params Request parameters
*
* @return string
*/
public function index(array $params): string
{

View File

@ -20,8 +20,6 @@ class ProcessesController extends AbstractController
{
/**
* @param array $params Request parameters
*
* @return string
*/
public function index(array $params): string
{
@ -57,8 +55,6 @@ class ProcessesController extends AbstractController
* Only sends the process list table
*
* @param array $params Request parameters
*
* @return string
*/
public function refresh(array $params): string
{
@ -107,8 +103,6 @@ class ProcessesController extends AbstractController
/**
* @param array $params Request parameters
*
* @return string
*/
private function getList(array $params): string
{

View File

@ -117,8 +117,6 @@ class VariablesController extends AbstractController
* Flush status variables if requested
*
* @param string $flush Variable name
*
* @return void
*/
private function flush(string $flush): void
{

View File

@ -33,8 +33,6 @@ class VariablesController extends AbstractController
* Index action
*
* @param array $params Request parameters
*
* @return string
*/
public function index(array $params): string
{

View File

@ -47,8 +47,6 @@ class ServersController extends AbstractController
/**
* @param array $params Request parameters
*
* @return void
*/
public function destroy(array $params): void
{

View File

@ -218,8 +218,6 @@ class SqlController extends AbstractController
* Get values for the relational columns
*
* During grid edit, if we have a relational field, show the dropdown for it.
*
* @return void
*/
public function getRelationalValues(): void
{
@ -247,8 +245,6 @@ class SqlController extends AbstractController
/**
* Get possible values for enum fields during grid edit.
*
* @return void
*/
public function getEnumValues(): void
{
@ -269,8 +265,6 @@ class SqlController extends AbstractController
/**
* Get possible values for SET fields during grid edit.
*
* @return void
*/
public function getSetValues(): void
{

View File

@ -24,8 +24,6 @@ class ChartController extends AbstractController
{
/**
* Execute the query and return the result
*
* @return void
*/
public function index(): void
{
@ -143,8 +141,6 @@ class ChartController extends AbstractController
/**
* Handle ajax request
*
* @return void
*/
public function ajax(): void
{

View File

@ -77,8 +77,6 @@ class FindReplaceController extends AbstractController
/**
* Gets all the columns of a table along with their types.
*
* @return void
*/
private function _loadTableInfo(): void
{
@ -119,8 +117,6 @@ class FindReplaceController extends AbstractController
/**
* Display selection form action
*
* @return void
*/
public function displaySelectionFormAction(): void
{

View File

@ -164,8 +164,6 @@ final class GisVisualizationController extends AbstractController
/**
* @param string $filename File name
* @param string $format Save format
*
* @return void
*/
private function saveToFile(string $filename, string $format): void
{

View File

@ -45,8 +45,6 @@ class IndexesController extends AbstractController
* Display the form to edit/create an index
*
* @param Index $index An Index instance.
*
* @return void
*/
public function displayForm(Index $index): void
{
@ -112,8 +110,6 @@ class IndexesController extends AbstractController
* and moves back to /table/sql
*
* @param Index $index An Index instance.
*
* @return void
*/
public function doSaveData(Index $index): void
{

View File

@ -36,8 +36,6 @@ class PrivilegesController extends AbstractController
/**
* @param array $params Request parameters
*
* @return string
*/
public function index(array $params): string
{

View File

@ -54,8 +54,6 @@ final class RelationController extends AbstractController
/**
* Index
*
* @return void
*/
public function index(): void
{
@ -207,8 +205,6 @@ final class RelationController extends AbstractController
*
* @param Table $table table
* @param array $cfgRelation relation parameters
*
* @return void
*/
private function updateForDisplayField(Table $table, array $cfgRelation): void
{
@ -232,8 +228,6 @@ final class RelationController extends AbstractController
* @param Table $table Table
* @param array $options Options
* @param array $relationsForeign External relations
*
* @return void
*/
private function updateForForeignKeys(Table $table, array $options, array $relationsForeign): void
{
@ -287,8 +281,6 @@ final class RelationController extends AbstractController
* @param Table $table Table
* @param array $cfgRelation Relation parameters
* @param array $relations Relations
*
* @return void
*/
private function updateForInternalRelation(Table $table, array $cfgRelation, array $relations): void
{
@ -314,8 +306,6 @@ final class RelationController extends AbstractController
/**
* Send table columns for foreign table dropdown
*
* @return void
*/
public function getDropdownValueForTable(): void
{
@ -350,8 +340,6 @@ final class RelationController extends AbstractController
* Send database selection values for dropdown
*
* @param string $storageEngine Storage engine.
*
* @return void
*/
public function getDropdownValueForDatabase(string $storageEngine): void
{

View File

@ -168,8 +168,6 @@ class SearchController extends AbstractController
/**
* Index action
*
* @return void
*/
public function index(): void
{
@ -276,8 +274,6 @@ class SearchController extends AbstractController
/**
* Display selection form action
*
* @return void
*/
public function displaySelectionFormAction(): void
{

View File

@ -154,8 +154,6 @@ class ZoomSearchController extends AbstractController
/**
* Gets all the columns of a table along with their types, collations
* and whether null or not.
*
* @return void
*/
private function _loadTableInfo(): void
{

View File

@ -254,8 +254,6 @@ class Core
*
* @param string $error_message the error message or named error message
* @param string|array $message_args arguments applied to $error_message
*
* @return void
*/
public static function fatalError(
string $error_message,
@ -341,8 +339,6 @@ class Core
* @param string $extension Extension name
* @param bool $fatal Whether the error is fatal.
* @param string $extra Extra string to append to message.
*
* @return void
*/
public static function warnMissingExtension(
string $extension,
@ -411,8 +407,6 @@ class Core
* in Moodle)
*
* @param string|int $size size (Default = 0)
*
* @return int
*/
public static function getRealSize($size = 0): int
{
@ -521,8 +515,6 @@ class Core
*
* @param string $uri the header to send
* @param bool $use_refresh whether to use Refresh: header when running on IIS
*
* @return void
*/
public static function sendHeaderLocation(string $uri, bool $use_refresh = false): void
{
@ -564,8 +556,6 @@ class Core
/**
* Outputs application/json headers. This includes no caching.
*
* @return void
*/
public static function headerJSON(): void
{
@ -584,8 +574,6 @@ class Core
/**
* Outputs headers to prevent caching in browser (and on the way).
*
* @return void
*/
public static function noCacheHeader(): void
{
@ -615,8 +603,6 @@ class Core
* @param string $mimetype MIME type to include in headers.
* @param int $length Length of content (optional)
* @param bool $no_cache Whether to include no-caching headers.
*
* @return void
*/
public static function downloadHeader(
string $filename,
@ -677,8 +663,6 @@ class Core
* @param string $path path in the array
* @param array $array the array
* @param mixed $value value to store
*
* @return void
*/
public static function arrayWrite(string $path, array &$array, $value): void
{
@ -699,8 +683,6 @@ class Core
*
* @param string $path path in the array
* @param array $array the array
*
* @return void
*/
public static function arrayRemove(string $path, array &$array): void
{
@ -843,8 +825,6 @@ class Core
* Displays SQL query before executing.
*
* @param array|string $query_data Array containing queries or query itself
*
* @return void
*/
public static function previewSQL($query_data): void
{
@ -891,8 +871,6 @@ class Core
* Creates some globals from $_POST variables matching a pattern
*
* @param array $post_patterns The patterns to search for
*
* @return void
*/
public static function setPostAsGlobal(array $post_patterns): void
{
@ -909,8 +887,6 @@ class Core
* Creates some globals from $_REQUEST
*
* @param string $param db|table
*
* @return void
*/
public static function setGlobalDbOrTable(string $param): void
{
@ -925,8 +901,6 @@ class Core
/**
* PATH_INFO could be compromised if set, so remove it from PHP_SELF
* and provide a clean PHP_SELF here
*
* @return void
*/
public static function cleanupPathInfo(): void
{
@ -974,8 +948,6 @@ class Core
/**
* Checks that required PHP extensions are there.
*
* @return void
*/
public static function checkExtensions(): void
{
@ -1064,8 +1036,6 @@ class Core
* * strips p: prefix(es)
*
* @param string $name User given hostname
*
* @return string
*/
public static function sanitizeMySQLHost(string $name): string
{
@ -1082,8 +1052,6 @@ class Core
* * strips part behind null byte
*
* @param string $name User given username
*
* @return string
*/
public static function sanitizeMySQLUser(string $name): string
{
@ -1183,8 +1151,6 @@ class Core
/**
* Applies changes to PHP configuration.
*
* @return void
*/
public static function configure(): void
{
@ -1211,8 +1177,6 @@ class Core
/**
* Check whether PHP configuration matches our needs.
*
* @return void
*/
public static function checkConfiguration(): void
{
@ -1249,8 +1213,6 @@ class Core
/**
* Checks request and fails with fatal error if something problematic is found
*
* @return void
*/
public static function checkRequest(): void
{

View File

@ -442,8 +442,6 @@ class CreateAddField
*
* @param string $db database name
* @param string $table table name
*
* @return string
*/
public function getTableCreationQuery(string $db, string $table): string
{
@ -482,8 +480,6 @@ class CreateAddField
/**
* Function to get the number of fields for the table creation form
*
* @return int
*/
public function getNumberOfFieldsFromRequest(): int
{

View File

@ -41,8 +41,6 @@ class DatabaseList
/**
* Accessor to PMA::$databases
*
* @return ListDatabase
*/
public function getDatabaseList(): ListDatabase
{

View File

@ -39,8 +39,6 @@ class DesignerTable
/**
* The table engine supports or not foreign keys
*
* @return bool
*/
public function supportsForeignkeys(): bool
{
@ -49,8 +47,6 @@ class DesignerTable
/**
* Get the database name
*
* @return string
*/
public function getDatabaseName(): string
{
@ -59,8 +55,6 @@ class DesignerTable
/**
* Get the table name
*
* @return string
*/
public function getTableName(): string
{
@ -69,8 +63,6 @@ class DesignerTable
/**
* Get the table engine
*
* @return string
*/
public function getTableEngine(): string
{
@ -89,8 +81,6 @@ class DesignerTable
/**
* Get the db and table separated with a dot
*
* @return string
*/
public function getDbTableString(): string
{

View File

@ -156,8 +156,6 @@ class DatabaseInterface implements DbalInterface
* Checks whether database extension is loaded
*
* @param string $extension mysql extension to check
*
* @return bool
*/
public static function checkDbExtension(string $extension = 'mysqli'): bool
{
@ -204,8 +202,6 @@ class DatabaseInterface implements DbalInterface
*
* @param array|null $contentPath Array with the target path
* @param mixed $value Target value
*
* @return void
*/
public function cacheTableContent(?array $contentPath, $value): void
{
@ -234,8 +230,6 @@ class DatabaseInterface implements DbalInterface
/**
* Clear the table cache.
*
* @return void
*/
public function clearTableCache(): void
{
@ -248,8 +242,6 @@ class DatabaseInterface implements DbalInterface
*
* @param array $tables information for tables of some databases
* @param string|bool $table table name
*
* @return void
*/
private function _cacheTableData(array $tables, $table): void
{
@ -284,8 +276,6 @@ class DatabaseInterface implements DbalInterface
* @param mixed $link link type
* @param object|bool $result Query result
* @param int|float $time Time to execute query
*
* @return void
*/
private function _dbgQuery(string $query, $link, $result, $time): void
{
@ -1311,8 +1301,6 @@ class DatabaseInterface implements DbalInterface
* @param string $table name of table to retrieve columns from
* @param string $column name of column, null to show all columns
* @param bool $full whether to return full info or only column names
*
* @return string
*/
public function getColumnsSql(
string $database,
@ -1511,8 +1499,6 @@ class DatabaseInterface implements DbalInterface
* Convert version string to integer.
*
* @param string $version MySQL server version
*
* @return int
*/
public static function versionToInt(string $version): int
{
@ -1524,8 +1510,6 @@ class DatabaseInterface implements DbalInterface
* Function called just after a connection to the MySQL database server has
* been established. It sets the connection collation, and determines the
* version of MySQL which is running.
*
* @return void
*/
public function postConnect(): void
{
@ -1612,8 +1596,6 @@ class DatabaseInterface implements DbalInterface
* Sets collation connection for user link
*
* @param string $collation collation to set
*
* @return void
*/
public function setCollation(string $collation): void
{
@ -1665,8 +1647,6 @@ class DatabaseInterface implements DbalInterface
* Function called just after a connection to the MySQL database server has
* been established. It sets the connection collation, and determines the
* version of MySQL which is running.
*
* @return void
*/
public function postConnectControl(): void
{
@ -2495,8 +2475,6 @@ class DatabaseInterface implements DbalInterface
* @param string $schema_name Name of schema (database) to test
* @param bool $testForMysqlSchema Whether 'mysql' schema should
* be treated the same as IS and DD
*
* @return bool
*/
public function isSystemSchema(
string $schema_name,
@ -2679,8 +2657,6 @@ class DatabaseInterface implements DbalInterface
*
* @param string $dbname database name to select
* @param int $link link type
*
* @return bool
*/
public function selectDb(string $dbname, $link = self::CONNECT_USER): bool
{
@ -2743,8 +2719,6 @@ class DatabaseInterface implements DbalInterface
* Frees memory associated with the result
*
* @param object $result database result
*
* @return void
*/
public function freeResult($result): void
{
@ -3012,8 +2986,6 @@ class DatabaseInterface implements DbalInterface
/**
* Checks if this database server is running on Amazon RDS.
*
* @return bool
*/
public function isAmazonRds(): bool
{
@ -3032,8 +3004,6 @@ class DatabaseInterface implements DbalInterface
* Gets SQL for killing a process.
*
* @param int $process Process ID
*
* @return string
*/
public function getKillQuery(int $process): string
{
@ -3046,8 +3016,6 @@ class DatabaseInterface implements DbalInterface
/**
* Get the phpmyadmin database manager
*
* @return SystemDatabase
*/
public function getSystemDatabase(): SystemDatabase
{
@ -3059,8 +3027,6 @@ class DatabaseInterface implements DbalInterface
*
* @param string $db_name DB name
* @param string $table_name Table name
*
* @return Table
*/
public function getTable(string $db_name, string $table_name): Table
{
@ -3100,8 +3066,6 @@ class DatabaseInterface implements DbalInterface
/**
* returns default server collation from show variables
*
* @return string
*/
public function getServerCollation(): string
{
@ -3110,8 +3074,6 @@ class DatabaseInterface implements DbalInterface
/**
* Server version as number
*
* @return int
*/
public function getVersion(): int
{
@ -3120,8 +3082,6 @@ class DatabaseInterface implements DbalInterface
/**
* Server version
*
* @return string
*/
public function getVersionString(): string
{
@ -3130,8 +3090,6 @@ class DatabaseInterface implements DbalInterface
/**
* Server version comment
*
* @return string
*/
public function getVersionComment(): string
{
@ -3140,8 +3098,6 @@ class DatabaseInterface implements DbalInterface
/**
* Whether connection is MariaDB
*
* @return bool
*/
public function isMariaDB(): bool
{
@ -3150,8 +3106,6 @@ class DatabaseInterface implements DbalInterface
/**
* Whether connection is Percona
*
* @return bool
*/
public function isPercona(): bool
{
@ -3162,8 +3116,6 @@ class DatabaseInterface implements DbalInterface
* Load correct database driver
*
* @param DbiExtension|null $extension Force the use of an alternative extension
*
* @return self
*/
public static function load(?DbiExtension $extension = null): self
{

View File

@ -45,15 +45,11 @@ interface DbalInterface
*
* @param array|null $contentPath Array with the target path
* @param mixed $value Target value
*
* @return void
*/
public function cacheTableContent(?array $contentPath, $value): void;
/**
* Clear the table cache.
*
* @return void
*/
public function clearTableCache(): void;
@ -225,8 +221,6 @@ interface DbalInterface
* @param string $table name of table to retrieve columns from
* @param string $column name of column, null to show all columns
* @param bool $full whether to return full info or only column names
*
* @return string
*/
public function getColumnsSql(
string $database,
@ -327,8 +321,6 @@ interface DbalInterface
* Function called just after a connection to the MySQL database server has
* been established. It sets the connection collation, and determines the
* version of MySQL which is running.
*
* @return void
*/
public function postConnect(): void;
@ -336,8 +328,6 @@ interface DbalInterface
* Sets collation connection for user link
*
* @param string $collation collation to set
*
* @return void
*/
public function setCollation(string $collation): void;
@ -345,8 +335,6 @@ interface DbalInterface
* Function called just after a connection to the MySQL database server has
* been established. It sets the connection collation, and determines the
* version of MySQL which is running.
*
* @return void
*/
public function postConnectControl(): void;
@ -603,8 +591,6 @@ interface DbalInterface
* @param bool $testForMysqlSchema Whether 'mysql' schema should
* be treated the same as IS and
* DD
*
* @return bool
*/
public function isSystemSchema(string $schema_name, bool $testForMysqlSchema = false): bool;
@ -636,8 +622,6 @@ interface DbalInterface
*
* @param string $dbname database name to select
* @param int $link link type
*
* @return bool
*/
public function selectDb(string $dbname, $link = DatabaseInterface::CONNECT_USER): bool;
@ -682,8 +666,6 @@ interface DbalInterface
* Frees memory associated with the result
*
* @param object $result database result
*
* @return void
*/
public function freeResult($result): void;
@ -839,8 +821,6 @@ interface DbalInterface
/**
* Checks if this database server is running on Amazon RDS.
*
* @return bool
*/
public function isAmazonRds(): bool;
@ -848,15 +828,11 @@ interface DbalInterface
* Gets SQL for killing a process.
*
* @param int $process Process ID
*
* @return string
*/
public function getKillQuery(int $process): string;
/**
* Get the phpmyadmin database manager
*
* @return SystemDatabase
*/
public function getSystemDatabase(): SystemDatabase;
@ -865,8 +841,6 @@ interface DbalInterface
*
* @param string $db_name DB name
* @param string $table_name Table name
*
* @return Table
*/
public function getTable(string $db_name, string $table_name): Table;
@ -881,43 +855,31 @@ interface DbalInterface
/**
* returns default server collation from show variables
*
* @return string
*/
public function getServerCollation(): string;
/**
* Server version as number
*
* @return int
*/
public function getVersion(): int;
/**
* Server version
*
* @return string
*/
public function getVersionString(): string;
/**
* Server version comment
*
* @return string
*/
public function getVersionComment(): string;
/**
* Whether connection is MariaDB
*
* @return bool
*/
public function isMariaDB(): bool;
/**
* Whether connection is Percona
*
* @return bool
*/
public function isPercona(): bool;

View File

@ -25,8 +25,6 @@ class Error
* @param string $errorHeader Error header
* @param string $errorMessage Error message
*
* @return string
*
* @throws Throwable
* @throws Twig_Error_Loader
* @throws Twig_Error_Runtime

View File

@ -4769,8 +4769,6 @@ class Results
* @param array $analyzed_sql_results analyzed sql results
* @param array $params Array with URL Parameters
*
* @return string
*
* @access private
*/
private function _getLinkForCreateView(array $analyzed_sql_results, array $params): string

View File

@ -117,8 +117,6 @@ class Encoding
/**
* Initializes encoding engine detecting available backends.
*
* @return void
*/
public static function initEngine(): void
{
@ -153,8 +151,6 @@ class Encoding
* Setter for engine. Use with caution, mostly useful for testing.
*
* @param int $engine Engine encoding
*
* @return void
*/
public static function setEngine(int $engine): void
{
@ -163,8 +159,6 @@ class Encoding
/**
* Checks whether there is any charset conversion supported
*
* @return bool
*/
public static function isSupported(): bool
{
@ -223,8 +217,6 @@ class Encoding
/**
* Detects whether Kanji encoding is available
*
* @return bool
*/
public static function canConvertKanji(): bool
{
@ -233,8 +225,6 @@ class Encoding
/**
* Setter for Kanji encodings. Use with caution, mostly useful for testing.
*
* @return string
*/
public static function getKanjiEncodings(): string
{
@ -245,8 +235,6 @@ class Encoding
* Setter for Kanji encodings. Use with caution, mostly useful for testing.
*
* @param string $value Kanji encodings list
*
* @return void
*/
public static function setKanjiEncodings(string $value): void
{
@ -255,8 +243,6 @@ class Encoding
/**
* Reverses SJIS & EUC-JP position in the encoding codes list
*
* @return void
*/
public static function kanjiChangeOrder(): void
{

View File

@ -201,8 +201,6 @@ class Error extends Message
* Toggles location hiding
*
* @param bool $hide Whether to hide
*
* @return void
*/
public function setHideLocation(bool $hide): void
{
@ -215,8 +213,6 @@ class Error extends Message
* We don't store full arguments to avoid wakeup or memory problems.
*
* @param array $backtrace backtrace
*
* @return void
*/
public function setBacktrace(array $backtrace): void
{
@ -227,8 +223,6 @@ class Error extends Message
* sets PhpMyAdmin\Error::$_line
*
* @param int $line the line
*
* @return void
*/
public function setLine(int $line): void
{
@ -239,8 +233,6 @@ class Error extends Message
* sets PhpMyAdmin\Error::$_file
*
* @param string $file the file
*
* @return void
*/
public function setFile(string $file): void
{
@ -343,8 +335,6 @@ class Error extends Message
/**
* returns title for error
*
* @return string
*/
public function getTitle(): string
{
@ -353,8 +343,6 @@ class Error extends Message
/**
* Get HTML backtrace
*
* @return string
*/
public function getBacktraceDisplay(): string
{
@ -401,8 +389,6 @@ class Error extends Message
*
* @param array $step backtrace step
* @param string $separator Arguments separator to use
*
* @return string
*/
public static function getFunctionCall(array $step, string $separator): string
{
@ -433,8 +419,6 @@ class Error extends Message
*
* @param string $arg argument to process
* @param string $function function name
*
* @return string
*/
public static function getArg($arg, string $function): string
{
@ -474,8 +458,6 @@ class Error extends Message
/**
* Gets the error as string of HTML
*
* @return string
*/
public function getDisplay(): string
{
@ -508,8 +490,6 @@ class Error extends Message
/**
* whether this error is a user error
*
* @return bool
*/
public function isUserError(): bool
{

View File

@ -106,8 +106,6 @@ class ErrorHandler
* Toggles location hiding
*
* @param bool $hide Whether to hide
*
* @return void
*/
public function setHideLocation(bool $hide): void
{
@ -164,8 +162,6 @@ class ErrorHandler
* @param string $errstr error string
* @param string $errfile error file
* @param int $errline error line
*
* @return void
*/
public function handleError(
int $errno,
@ -209,8 +205,6 @@ class ErrorHandler
* @param string $errfile error file
* @param int $errline error line
* @param bool $escape whether to escape the error string
*
* @return void
*/
public function addError(
string $errstr,
@ -267,8 +261,6 @@ class ErrorHandler
*
* @param string $errorInfo error message
* @param int $errorNumber error number
*
* @return void
*/
public function triggerError(string $errorInfo, ?int $errorNumber = null): void
{
@ -281,8 +273,6 @@ class ErrorHandler
* display fatal error and exit
*
* @param Error $error the error
*
* @return void
*/
protected function dispFatalError(Error $error): void
{
@ -296,8 +286,6 @@ class ErrorHandler
/**
* Displays user errors not displayed
*
* @return void
*/
public function dispUserErrors(): void
{
@ -306,8 +294,6 @@ class ErrorHandler
/**
* Renders user errors not displayed
*
* @return string
*/
public function getDispUserErrors(): string
{
@ -324,8 +310,6 @@ class ErrorHandler
* display HTML header
*
* @param Error $error the error
*
* @return void
*/
protected function dispPageStart(?Error $error = null): void
{
@ -341,8 +325,6 @@ class ErrorHandler
/**
* display HTML footer
*
* @return void
*/
protected function dispPageEnd(): void
{
@ -351,8 +333,6 @@ class ErrorHandler
/**
* renders errors not displayed
*
* @return string
*/
public function getDispErrors(): string
{
@ -410,8 +390,6 @@ class ErrorHandler
/**
* look in session for saved errors
*
* @return void
*/
protected function checkSavedErrors(): void
{
@ -462,8 +440,6 @@ class ErrorHandler
/**
* whether use errors occurred or not
*
* @return bool
*/
public function hasUserErrors(): bool
{
@ -472,8 +448,6 @@ class ErrorHandler
/**
* whether errors occurred or not
*
* @return bool
*/
public function hasErrors(): bool
{
@ -496,8 +470,6 @@ class ErrorHandler
/**
* whether there are errors to display or not
*
* @return bool
*/
public function hasDisplayErrors(): bool
{
@ -508,8 +480,6 @@ class ErrorHandler
* Deletes previously stored errors in SESSION.
* Saves current errors in session as previous errors.
* Required to save current errors in case 'ask'
*
* @return void
*/
public function savePreviousErrors(): void
{
@ -536,8 +506,6 @@ class ErrorHandler
* Function to report all the collected php errors.
* Must be called at the end of each script
* by the $GLOBALS['error_handler'] only.
*
* @return void
*/
public function reportErrors(): void
{

View File

@ -58,8 +58,6 @@ class ErrorReport
* Set the URL where to submit reports to
*
* @param string $submissionUrl Submission URL
*
* @return void
*/
public function setSubmissionUrl(string $submissionUrl): void
{

View File

@ -62,8 +62,6 @@ class Export
/**
* Sets a session variable upon a possible fatal error during export
*
* @return void
*/
public function shutdown(): void
{
@ -76,8 +74,6 @@ class Export
/**
* Detect ob_gzhandler
*
* @return bool
*/
public function isGzHandlerEnabled(): bool
{
@ -484,8 +480,6 @@ class Export
*
* @param string $object_name the name of current object to be stored
* @param bool $append optional boolean to append to an existing index or not
*
* @return void
*/
public function saveObjectInBuffer(string $object_name, bool $append = false): void
{
@ -598,8 +592,6 @@ class Export
* @param bool $do_dates whether to add dates
* @param array $aliases alias information for db/table/column
* @param string $separate_files whether it is a separate-files export
*
* @return void
*/
public function exportServer(
$db_select,
@ -667,8 +659,6 @@ class Export
* @param bool $do_dates whether to add dates
* @param array $aliases Alias information for db/table/column
* @param string $separate_files whether it is a separate-files export
*
* @return void
*/
public function exportDatabase(
string $db,
@ -919,8 +909,6 @@ class Export
* @param string $limit_from starting limit
* @param string $sql_query query for which exporting is requested
* @param array $aliases Alias information for db/table/column
*
* @return void
*/
public function exportTable(
string $db,
@ -1071,8 +1059,6 @@ class Export
* @param string $db the database name
* @param string $table the table name
* @param string $export_type Export type
*
* @return void
*/
public function showPage(string $db, string $table, string $export_type): void
{
@ -1225,8 +1211,6 @@ class Export
* call and include the appropriate Schema Class depending on $export_type
*
* @param string|null $export_type format of the export
*
* @return void
*/
public function processExportSchema(?string $export_type): void
{

View File

@ -170,8 +170,6 @@ class File
*
* @param string|null $name file name
*
* @return void
*
* @access public
*/
public function setName(?string $name): void
@ -230,8 +228,6 @@ class File
/**
* Whether file is uploaded.
*
* @return bool
*
* @access public
*/
public function isUploaded(): bool
@ -596,8 +592,6 @@ class File
* Sets whether the content should be decompressed before returned
*
* @param bool $decompress whether to decompress
*
* @return void
*/
public function setDecompressContent(bool $decompress): void
{
@ -621,8 +615,6 @@ class File
* Sets the file handle
*
* @param resource $handle file handle
*
* @return void
*/
public function setHandle($handle): void
{
@ -631,8 +623,6 @@ class File
/**
* Sets error message for unsupported compression.
*
* @return void
*/
public function errorUnsupported(): void
{
@ -648,8 +638,6 @@ class File
/**
* Attempts to open the file.
*
* @return bool
*/
public function open(): bool
{
@ -698,8 +686,6 @@ class File
* Opens file from zip
*
* @param string|null $specific_entry Entry to open
*
* @return bool
*/
public function openZip(?string $specific_entry = null): bool
{
@ -715,8 +701,6 @@ class File
/**
* Checks whether we've reached end of file
*
* @return bool
*/
public function eof(): bool
{
@ -728,8 +712,6 @@ class File
/**
* Closes the file
*
* @return void
*/
public function close(): void
{
@ -747,8 +729,6 @@ class File
* Reads data from file
*
* @param int $size Number of bytes to read
*
* @return string
*/
public function read(int $size): string
{
@ -781,8 +761,6 @@ class File
* Sets the character set of the file
*
* @param string $charset character set of the file
*
* @return void
*/
public function setCharset(string $charset): void
{
@ -829,8 +807,6 @@ class File
* Sets the chunk size
*
* @param int $chunk_size the chunk size
*
* @return void
*/
public function setChunkSize(int $chunk_size): void
{

View File

@ -73,8 +73,6 @@ class Footer
/**
* Returns the message for demo server to error messages
*
* @return string
*/
private function _getDemoMessage(): string
{
@ -128,8 +126,6 @@ class Footer
/**
* Renders the debug messages
*
* @return string
*/
public function getDebugMessage(): string
{
@ -151,8 +147,6 @@ class Footer
/**
* Returns the url of the current page
*
* @return string
*/
public function getSelfUrl(): string
{
@ -206,8 +200,6 @@ class Footer
* Renders the link to open a new page
*
* @param string $url The url of the page
*
* @return string
*/
private function _getSelfLink(string $url): string
{
@ -230,8 +222,6 @@ class Footer
/**
* Renders the link to open a new page
*
* @return string
*/
public function getErrorMessages(): string
{
@ -250,8 +240,6 @@ class Footer
/**
* Saves query in history
*
* @return void
*/
private function _setHistory(): void
{
@ -272,8 +260,6 @@ class Footer
/**
* Disables the rendering of the footer
*
* @return void
*/
public function disable(): void
{
@ -285,8 +271,6 @@ class Footer
* we are servicing an ajax request
*
* @param bool $isAjax Whether we are servicing an ajax request
*
* @return void
*/
public function setAjax(bool $isAjax): void
{
@ -295,8 +279,6 @@ class Footer
/**
* Turn on minimal display mode
*
* @return void
*/
public function setMinimal(): void
{
@ -315,8 +297,6 @@ class Footer
/**
* Renders the footer
*
* @return string
*/
public function getDisplay(): string
{

View File

@ -155,8 +155,6 @@ class Header
/**
* Loads common scripts
*
* @return void
*/
private function _addDefaultScripts(): void
{
@ -267,8 +265,6 @@ class Header
/**
* Returns, as a string, a list of parameters
* used on the client side
*
* @return string
*/
public function getJsParamsCode(): string
{
@ -285,8 +281,6 @@ class Header
/**
* Disables the rendering of the header
*
* @return void
*/
public function disable(): void
{
@ -298,8 +292,6 @@ class Header
* we are servicing an ajax request
*
* @param bool $isAjax Whether we are servicing an ajax request
*
* @return void
*/
public function setAjax(bool $isAjax): void
{
@ -331,8 +323,6 @@ class Header
* Setter for the ID attribute in the BODY tag
*
* @param string $id Value for the ID attribute
*
* @return void
*/
public function setBodyId(string $id): void
{
@ -343,8 +333,6 @@ class Header
* Setter for the title of the page
*
* @param string $title New title
*
* @return void
*/
public function setTitle(string $title): void
{
@ -353,8 +341,6 @@ class Header
/**
* Disables the display of the top menu
*
* @return void
*/
public function disableMenuAndConsole(): void
{
@ -364,8 +350,6 @@ class Header
/**
* Disables the display of the top menu
*
* @return void
*/
public function disableWarnings(): void
{
@ -374,8 +358,6 @@ class Header
/**
* Turns on 'print view' mode
*
* @return void
*/
public function enablePrintView(): void
{
@ -485,8 +467,6 @@ class Header
/**
* Returns the message to be displayed at the top of
* the page, including the executed SQL query, if any.
*
* @return string
*/
public function getMessage(): string
{
@ -512,8 +492,6 @@ class Header
/**
* Sends out the HTTP headers
*
* @return void
*/
public function sendHttpHeaders(): void
{
@ -630,8 +608,6 @@ class Header
/**
* If the page is missing the title, this function
* will set it to something reasonable
*
* @return string
*/
public function getPageTitle(): string
{
@ -661,8 +637,6 @@ class Header
*
* @param string $db Database name where the table is located.
* @param string $table The table name
*
* @return string
*/
private function _addRecentTable(string $db, string $table): string
{

View File

@ -19,8 +19,6 @@ interface ActionLinksModesInterface
* @param string $text Text of the generated element
* @param string $image Image of the generated element, if image mode
* @param string $value Value of the generated element
*
* @return string
*/
public static function generate(
string $name,

View File

@ -15,8 +15,6 @@ class Factory
* Build an ActionLinksModesInterface to generate the HTML element
*
* @param string $mode Mode (text, image)
*
* @return ActionLinksModesInterface
*/
public static function build(string $mode): ActionLinksModesInterface
{

View File

@ -22,8 +22,6 @@ class Image implements ActionLinksModesInterface
* @param string $text Text of the generated element
* @param string $image Image of the generated element, if image mode
* @param string $value Value of the generated element
*
* @return string
*/
public static function generate(
string $name,

View File

@ -21,8 +21,6 @@ class Text implements ActionLinksModesInterface
* @param string $text Text of the generated element
* @param string $image Image of the generated element, if image mode
* @param string $value Value of the generated element
*
* @return string
*/
public static function generate(
string $name,

View File

@ -19,8 +19,6 @@ class BrowseUploadFileBlock implements FieldGenerator
* import
*
* @param string $max_upload_size maximum upload size
*
* @return string
*/
public static function generate(string $max_upload_size): string
{

View File

@ -24,8 +24,6 @@ class DropDownUploadFileBlock implements FieldGenerator
*
* @param ImportPlugin[] $import_list array of import plugins
* @param string $uploaddir upload directory
*
* @return string
*/
public static function generate($import_list, $uploaddir): string
{

View File

@ -113,8 +113,6 @@ class Generator
*
* @param string $message the message for the tooltip
*
* @return string
*
* @access public
*/
public static function showHint($message): string
@ -307,8 +305,6 @@ class Generator
* @param string $component 'mysql' (eventually, 'php')
* @param string $minimum_version of this component
* @param string $bugref bug reference for this component
*
* @return string
*/
public static function getExternalBug(
$functionality,
@ -457,8 +453,6 @@ class Generator
/**
* Returns information about SSL status for current connection
*
* @return string
*/
public static function getServerSSL(): string
{
@ -750,8 +744,6 @@ class Generator
* @param string $sql_query the query to display
* @param string $type the type (level) of the message
*
* @return string
*
* @throws Throwable
* @throws Twig_Error_Loader
* @throws Twig_Error_Runtime
@ -1073,8 +1065,6 @@ class Generator
* @param bool $exit Whether execution should be stopped or
* the error message should be returned.
*
* @return string
*
* @global string $table The current table.
* @global string $db The current database.
*
@ -1565,8 +1555,6 @@ class Generator
* creates a drop-down list.
*
* @param string $selected The value to mark as selected in HTML mode
*
* @return string
*/
public static function getSupportedDatatypes($selected): string
{

View File

@ -106,8 +106,6 @@ class Import
* @param string $full query to display, this might be commented
* @param array $sql_data SQL parse data storage
*
* @return void
*
* @access public
*/
public function executeQuery(string $sql, string $full, array &$sql_data): void
@ -194,8 +192,6 @@ class Import
* @param string $full query to display, this might be commented
* @param array $sql_data SQL parse data storage
*
* @return void
*
* @access public
*/
public function runQuery(
@ -982,8 +978,6 @@ class Import
* @param array|null $options Associative array of options
* @param array $sql_data 2-element array with sql data
*
* @return void
*
* @access public
*/
public function buildSql(
@ -1366,8 +1360,6 @@ class Import
*
* @param Message $error_message The error message
*
* @return void
*
* @access public
*/
public function stop(Message $error_message): void
@ -1395,8 +1387,6 @@ class Import
/**
* Handles request for Simulation of UPDATE/DELETE queries.
*
* @return void
*/
public function handleSimulateDmlRequest(): void
{
@ -1620,8 +1610,6 @@ class Import
* Handles request for ROLLBACK.
*
* @param string $sql_query SQL query(s)
*
* @return void
*/
public function handleRollbackRequest(string $sql_query): void
{
@ -1665,8 +1653,6 @@ class Import
* Checks if ROLLBACK is possible for a SQL query or not.
*
* @param string $sql_query SQL query
*
* @return bool
*/
public function checkIfRollbackPossible(string $sql_query): bool
{
@ -1704,8 +1690,6 @@ class Import
* Checks if a table is 'InnoDB' or not.
*
* @param string $table Table details
*
* @return bool
*/
public function isTableTransactional(string $table): bool
{

View File

@ -619,8 +619,6 @@ class InsertEdit
* @param array $column description of column in given table
* @param array $foreigners keys into foreign fields
* @param array $foreignData data about the foreign keys
*
* @return string
*/
private function getNullifyCodeForNullColumn(
array $column,
@ -3071,8 +3069,6 @@ class InsertEdit
*
* @param array $column column
* @param string $column_name_appendix column name appendix
*
* @return string
*/
private function getHtmlForFunctionOption(array $column, $column_name_appendix): string
{

View File

@ -151,8 +151,6 @@ class Message
/**
* magic method: return string representation for this object
*
* @return string
*/
public function __toString(): string
{
@ -403,8 +401,6 @@ class Message
* Set whether we should use BB Code when rendering.
*
* @param bool $useBBCode Use BB Code?
*
* @return void
*/
public function setBBCode(bool $useBBCode): void
{
@ -416,8 +412,6 @@ class Message
*
* @param string $message A localized string
* @param bool $sanitize Whether to sanitize $message or not
*
* @return void
*/
public function setMessage(string $message, bool $sanitize = false): void
{
@ -432,8 +426,6 @@ class Message
*
* @param string $string string to set
* @param bool|int $sanitize whether to sanitize $string or not
*
* @return void
*/
public function setString(string $string, $sanitize = true): void
{
@ -447,8 +439,6 @@ class Message
* set message type number
*
* @param int $number message type number to set
*
* @return void
*/
public function setNumber(int $number): void
{
@ -464,8 +454,6 @@ class Message
* </code>
*
* @param mixed $param parameter to add
*
* @return void
*/
public function addParam($param): void
{
@ -485,8 +473,6 @@ class Message
* </code>
*
* @param string $param parameter to add
*
* @return void
*/
public function addParamHtml(string $param): void
{
@ -498,8 +484,6 @@ class Message
*
* @param Message[] $messages to be added
* @param string $separator to use between this and previous string/message
*
* @return void
*/
public function addMessages(array $messages, string $separator = ' '): void
{
@ -513,8 +497,6 @@ class Message
*
* @param string[] $messages to be added
* @param string $separator to use between this and previous string/message
*
* @return void
*/
public function addMessagesString(array $messages, string $separator = ' '): void
{
@ -528,8 +510,6 @@ class Message
*
* @param Message $message to be added
* @param string $separator to use between this and previous string/message
*
* @return void
*/
private function addMessageToList(self $message, string $separator): void
{
@ -544,8 +524,6 @@ class Message
*
* @param self $message to be added
* @param string $separator to use between this and previous string/message
*
* @return void
*/
public function addMessage(self $message, string $separator = ' '): void
{
@ -557,8 +535,6 @@ class Message
*
* @param string $message to be added
* @param string $separator to use between this and previous string/message
*
* @return void
*/
public function addText(string $message, string $separator = ' '): void
{
@ -570,8 +546,6 @@ class Message
*
* @param string $message to be added
* @param string $separator to use between this and previous string/message
*
* @return void
*/
public function addHtml(string $message, string $separator = ' '): void
{
@ -583,8 +557,6 @@ class Message
*
* @param array|string $params parameters to set
* @param bool|int $sanitize whether to sanitize params
*
* @return void
*/
public function setParams($params, $sanitize = false): void
{
@ -726,8 +698,6 @@ class Message
/**
* Returns only message string without image & other HTML.
*
* @return string
*/
public function getOnlyMessage(): string
{
@ -766,8 +736,6 @@ class Message
/**
* Displays the message in HTML
*
* @return void
*/
public function display(): void
{

View File

@ -699,8 +699,6 @@ class NavigationTree
* to group the whole tree. If
* passed as an argument, $node
* must be of type CONTAINER
*
* @return void
*/
public function groupTree(?Node $node = null): void
{

View File

@ -79,8 +79,6 @@ class NodeFactory
* @param int $type Type of node, may be one of CONTAINER or OBJECT
* @param bool $isGroup Whether this object has been created
* while grouping nodes
*
* @return Node
*/
public static function getInstance(
$class = 'Node',
@ -97,8 +95,6 @@ class NodeFactory
*
* @param string $name An identifier for the new node
* @param string $classes Extra CSS classes for the node
*
* @return Node
*/
public static function getInstanceForNewNode(
string $name,

View File

@ -134,8 +134,6 @@ class Node
* Adds a child node to this node
*
* @param Node $child A child node
*
* @return void
*/
public function addChild($child): void
{
@ -176,8 +174,6 @@ class Node
* Removes a child node from this node
*
* @param string $name The name of child to be removed
*
* @return void
*/
public function removeChild($name): void
{
@ -271,8 +267,6 @@ class Node
* the third level of the tree (columns and indexes), for which the function
* always returns true. This is because we want to render the containers
* for these nodes
*
* @return bool
*/
public function hasSiblings(): bool
{

View File

@ -52,8 +52,6 @@ class AuthenticationSignon extends AuthenticationPlugin
* Set cookie params
*
* @param array $sessionCookieParams The cookie params
*
* @return void
*/
public function setCookieParams(array $sessionCookieParams = null): void
{

View File

@ -205,8 +205,6 @@ class Response
* we are servicing an ajax request
*
* @param bool $isAjax Whether we are servicing an ajax request
*
* @return void
*/
public function setAjax(bool $isAjax): void
{
@ -233,8 +231,6 @@ class Response
* whether it is a success or an error
*
* @param bool $state Whether the request was successfully processed
*
* @return void
*/
public function setRequestStatus(bool $state): void
{
@ -244,8 +240,6 @@ class Response
/**
* Returns true or false depending on whether
* we are servicing an ajax request
*
* @return bool
*/
public function isAjax(): bool
{
@ -569,8 +563,6 @@ class Response
* Sets http response code.
*
* @param int $responseCode will set the response code.
*
* @return void
*/
public function setHttpResponseCode(int $responseCode): void
{

View File

@ -354,8 +354,6 @@ class Sanitize
*
* @param string[] $whitelist list of variables to allow
*
* @return void
*
* @access public
*/
public static function removeRequestVars(&$whitelist): void

View File

@ -97,8 +97,6 @@ final class Plugin
/**
* @param array $state array with the properties
*
* @return self
*/
public static function fromState(array $state): self
{

View File

@ -41,8 +41,6 @@ class Plugins
/**
* @param array $row Row fetched from database
*
* @return Plugin
*/
private function mapRowToPlugin(array $row): Plugin
{

View File

@ -2561,8 +2561,6 @@ class Privileges
/**
* update Message For Reload
*
* @return Message|null
*/
public function updateMessageForReload(): ?Message
{

View File

@ -175,8 +175,6 @@ class UserGroups
* Deletes a user group
*
* @param string $userGroup user group name
*
* @return void
*/
public static function delete(string $userGroup): void
{
@ -312,8 +310,6 @@ class UserGroups
*
* @param string $userGroup user group name
* @param bool $new whether this is a new user group
*
* @return void
*/
public static function edit(string $userGroup, bool $new = false): void
{

View File

@ -451,8 +451,6 @@ class Sql
* @param string $table current table
* @param string|null $complete_query complete query
* @param string $bkm_user bookmarking user
*
* @return string
*/
public function getHtmlForBookmark(
array $displayParts,
@ -535,8 +533,6 @@ class Sql
* @param array $analyzed_sql_results the analyzed query and other variables set
* after analyzing the query
* @param bool|null $find_real_end whether the real end should be found
*
* @return bool
*/
public function isJustBrowsing(array $analyzed_sql_results, ?bool $find_real_end): bool
{
@ -1395,8 +1391,6 @@ class Sql
/**
* Returns a message for successful creation of a bookmark or null if a bookmark
* was not created
*
* @return string
*/
private function getBookmarkCreatedMessage(): string
{
@ -1557,8 +1551,6 @@ class Sql
* @param bool $showSql whether to show sql
* @param array $sqlData sql data
* @param Message|string $displayMessage display message
*
* @return string
*/
private function getHtmlForPreviousUpdateQuery(
?string $displayQuery,
@ -1585,8 +1577,6 @@ class Sql
* @param string $database current database
* @param bool $editable whether the results table can be editable or not
* @param bool $hasUniqueKey whether there is a unique key
*
* @return string
*/
private function getMessageIfMissingColumnIndex($table, $database, $editable, $hasUniqueKey): string
{
@ -1633,8 +1623,6 @@ class Sql
* like check table, optimize table,
* analyze table or repair table
* @param string $database current database
*
* @return string
*/
private function getHtmlForIndexesProblems(?string $queryType, ?array $selectedTables, string $database): string
{

View File

@ -80,8 +80,6 @@ class TablePartitionDefinition
/**
* @param string $paramLabel Label searched in request
*
* @return int
*/
protected static function extractPartitionCount(string $paramLabel): int
{

View File

@ -93,8 +93,6 @@ class Template
*
* @param string $templateName Template path name
*
* @return Twig_TemplateWrapper
*
* @throws LoaderError
* @throws RuntimeError
* @throws SyntaxError
@ -128,8 +126,6 @@ class Template
* @param string $template Template path name
* @param array $data Associative array of template variables
*
* @return string
*
* @throws Throwable
* @throws Twig_Error_Loader
* @throws Twig_Error_Runtime

View File

@ -649,8 +649,6 @@ class Tracking
* Function to get html for schema snapshot
*
* @param array $params url parameters
*
* @return string
*/
public function getHtmlForSchemaSnapshot(array $params): string
{

View File

@ -280,8 +280,6 @@ class Url
/**
* @param string $route Route to use
* @param array $additionalParameters Additional URL parameters
*
* @return string
*/
public static function getFromRoute(string $route, array $additionalParameters = []): string
{

View File

@ -25,8 +25,6 @@ class UserPreferencesHeader
* @param Template $template Template object used to render data
* @param Relation $relation Relation object
*
* @return string
*
* @throws Throwable
* @throws Twig_Error_Loader
* @throws Twig_Error_Runtime
@ -42,8 +40,6 @@ class UserPreferencesHeader
/**
* @param Template $template Template object used to render data
*
* @return string
*
* @throws Throwable
* @throws Twig_Error_Loader
* @throws Twig_Error_Runtime
@ -122,8 +118,6 @@ class UserPreferencesHeader
/**
* @param Relation $relation Relation instance
*
* @return string|null
*/
protected static function sessionStorageWarning(Relation $relation): ?string
{

View File

@ -2932,8 +2932,6 @@ class Util
*
* @param int $length Length of string
* @param bool $asHex (optional) Send the result as hex
*
* @return string
*/
public static function generateRandom(int $length, bool $asHex = false): string
{
@ -3108,8 +3106,6 @@ class Util
* Check that input is an int or an int in a string
*
* @param mixed $input input to check
*
* @return bool
*/
public static function isInteger($input): bool
{

View File

@ -18,8 +18,6 @@ class AdvisorTest extends PmaTestCase
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*
* @return void
*/
protected function setUp(): void
{
@ -33,8 +31,6 @@ class AdvisorTest extends PmaTestCase
* @param string $text Text to escape
* @param string $expected Expected output
*
* @return void
*
* @dataProvider escapeStrings
*/
public function testEscape($text, $expected): void
@ -87,8 +83,6 @@ class AdvisorTest extends PmaTestCase
* @param float $time time
* @param string $expected expected result
*
* @return void
*
* @dataProvider advisorTimes
*/
public function testAdvisorBytime($time, $expected): void
@ -147,8 +141,6 @@ class AdvisorTest extends PmaTestCase
* @param array $expected Expected rendered rule in fired/errors list
* @param string $error Expected error string (null if none error expected)
*
* @return void
*
* @depends testParse
* @dataProvider rulesProvider
*/

View File

@ -18,8 +18,6 @@ class BookmarkTest extends TestCase
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*
* @return void
*
* @access protected
*/
protected function setUp(): void

View File

@ -20,8 +20,6 @@ class BrowseForeignersTest extends TestCase
/**
* Setup for test cases
*
* @return void
*/
protected function setUp(): void
{

View File

@ -90,8 +90,6 @@ class CentralColumnsTest extends TestCase
/**
* prepares environment for tests
*
* @return void
*/
protected function setUp(): void
{

View File

@ -39,8 +39,6 @@ class CollationTest extends TestCase
* @param string $collation Collation for which description is reqd
* @param string $description Expected Description
*
* @return void
*
* @dataProvider providerTestBuildDescription
*/
public function testBuildDescription($collation, $description): void

View File

@ -19,8 +19,6 @@ class CheckUserPrivilegesTest extends TestCase
/**
* prepares environment for tests
*
* @return void
*/
protected function setUp(): void
{

View File

@ -34,8 +34,6 @@ class ConfigFileTest extends PmaTestCase
/**
* Setup function for test cases
*
* @return void
*
* @access protected
*/
protected function setUp(): void
@ -46,8 +44,6 @@ class ConfigFileTest extends PmaTestCase
/**
* TearDown function for test cases
*
* @return void
*/
protected function tearDown(): void
{

View File

@ -18,8 +18,6 @@ class DescriptionTest extends PmaTestCase
{
/**
* Setup tests
*
* @return void
*/
protected function setUp(): void
{
@ -31,8 +29,6 @@ class DescriptionTest extends PmaTestCase
* @param string $type type
* @param string $expected expected result
*
* @return void
*
* @dataProvider getValues
*/
public function testGet($item, $type, $expected): void

View File

@ -23,8 +23,6 @@ class FormDisplayTemplateTest extends TestCase
/**
* Setup tests
*
* @return void
*/
protected function setUp(): void
{

View File

@ -26,8 +26,6 @@ class FormDisplayTest extends PmaTestCase
/**
* Configures global environment.
*
* @return void
*/
protected function setUp(): void
{
@ -39,8 +37,6 @@ class FormDisplayTest extends PmaTestCase
/**
* tearDown for test cases
*
* @return void
*/
protected function tearDown(): void
{

View File

@ -25,8 +25,6 @@ class FormTest extends PmaTestCase
/**
* Configures global environment.
*
* @return void
*/
protected function setUp(): void
{
@ -46,8 +44,6 @@ class FormTest extends PmaTestCase
/**
* tearDown for test cases
*
* @return void
*/
protected function tearDown(): void
{

View File

@ -27,8 +27,6 @@ class FormListTest extends PmaTestCase
* @param string $class Class to test
* @param string $prefix Reuturned class prefix
*
* @return void
*
* @dataProvider formObjects
*/
public function testForms($class, $prefix): void

View File

@ -17,8 +17,6 @@ class PageSettingsTest extends PmaTestCase
{
/**
* Setup tests
*
* @return void
*/
protected function setUp(): void
{

View File

@ -23,8 +23,6 @@ class ServerConfigChecksTest extends PmaTestCase
private $sessionID;
/**
* @return void
*
* @throws ReflectionException
*/
protected function setUp(): void

View File

@ -59,8 +59,6 @@ class ConfigTest extends PmaTestCase
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*
* @return void
*/
protected function setUp(): void
{
@ -79,8 +77,6 @@ class ConfigTest extends PmaTestCase
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*
* @return void
*/
protected function tearDown(): void
{
@ -133,8 +129,6 @@ class ConfigTest extends PmaTestCase
* @param string $browser Expected parsed browser (or null if none)
* @param string $version Expected browser version (or null if none)
*
* @return void
*
* @dataProvider userAgentProvider
*/
public function testCheckClient($agent, $os, $browser = null, $version = null): void
@ -338,8 +332,6 @@ class ConfigTest extends PmaTestCase
* @param string $server Server identification
* @param bool $iis Whether server should be detected as IIS
*
* @return void
*
* @dataProvider serverNames
*/
public function testCheckWebServer($server, $iis): void
@ -514,8 +506,6 @@ class ConfigTest extends PmaTestCase
* @param int $port server port
* @param bool $expected expected result
*
* @return void
*
* @dataProvider httpsParams
*/
public function testIsHttps($scheme, $https, $uri, $lb, $front, $proto, $protoCloudFront, $pmaAbsoluteUri, $port, $expected): void
@ -763,8 +753,6 @@ class ConfigTest extends PmaTestCase
* @param string $absolute The absolute URL used for phpMyAdmin
* @param string $expected Expected root path
*
* @return void
*
* @dataProvider rootUris
*/
public function testGetRootPath($request, $absolute, $expected): void
@ -871,8 +859,6 @@ class ConfigTest extends PmaTestCase
* @param string $source File name of config to load
* @param bool $result Expected result of loading
*
* @return void
*
* @dataProvider configPaths
*/
public function testLoad($source, $result): void
@ -1029,8 +1015,6 @@ class ConfigTest extends PmaTestCase
/**
* Test for getTempDir
*
* @return void
*
* @group file-system
*/
public function testGetTempDir(): void
@ -1046,8 +1030,6 @@ class ConfigTest extends PmaTestCase
/**
* Test for getUploadTempDir
*
* @return void
*
* @group file-system
*/
public function testGetUploadTempDir(): void
@ -1501,8 +1483,6 @@ class ConfigTest extends PmaTestCase
* @param array $expected expected result
* @param bool $error error
*
* @return void
*
* @dataProvider serverSettingsProvider
*/
public function testCheckServers($settings, $expected, $error = false): void
@ -1559,8 +1539,6 @@ class ConfigTest extends PmaTestCase
* @param string $request request
* @param int $expected expected result
*
* @return void
*
* @dataProvider selectServerProvider
* @depends testCheckServers
*/

View File

@ -45,8 +45,6 @@ class StructureControllerTest extends PmaTestCase
/**
* Prepares environment for the test.
*
* @return void
*/
protected function setUp(): void
{

View File

@ -22,8 +22,6 @@ class BinlogControllerTest extends TestCase
{
/**
* Prepares environment for the test.
*
* @return void
*/
protected function setUp(): void
{

View File

@ -19,8 +19,6 @@ class CollationsControllerTest extends TestCase
{
/**
* Prepares environment for the test.
*
* @return void
*/
protected function setUp(): void
{

View File

@ -22,8 +22,6 @@ class EnginesControllerTest extends TestCase
{
/**
* Prepares environment for the test.
*
* @return void
*/
protected function setUp(): void
{

View File

@ -21,8 +21,6 @@ class PluginsControllerTest extends TestCase
{
/**
* Prepares environment for the test.
*
* @return void
*/
protected function setUp(): void
{

Some files were not shown because too many files have changed in this diff Show More