Fix a phpdoc block and a coding standard issue

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2021-01-31 01:23:46 +01:00
parent 4597ce50fa
commit 2bc0b80cb9
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889
2 changed files with 2 additions and 7 deletions

View File

@ -18,10 +18,10 @@ use function defined;
use function htmlspecialchars;
use function htmlspecialchars_decode;
use function implode;
use function is_array;
use function is_bool;
use function mb_strtolower;
use function sprintf;
use function is_string;
/**
* PhpMyAdmin\Config\FormDisplayTemplate class

View File

@ -129,11 +129,6 @@ class Generator
/**
* Returns SQL query for fetching columns for a table
*
* The 'Key' column is not calculated properly, use $dbi->getColumns()
* to get correct values.
*
* @see getColumns()
*
* @param string $database name of database
* @param string $table name of table to retrieve columns from
* @param string|null $escapedColumn name of column, null to show all columns
@ -147,7 +142,7 @@ class Generator
): string {
return 'SHOW ' . ($full ? 'FULL' : '') . ' COLUMNS FROM '
. Util::backquote($database) . '.' . Util::backquote($table)
. ($escapedColumn !== null ? "LIKE '"
. ($escapedColumn !== null ? " LIKE '"
. $escapedColumn . "'" : '');
}