Merge pull request #19212 from kamil-tekiela/privatize-const

Privatize constants
This commit is contained in:
Maurício Meneghini Fauth 2024-06-28 15:23:14 -03:00 committed by GitHub
commit 91ea4bee40
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 11 deletions

View File

@ -20,7 +20,7 @@ use function json_encode;
*/
final class LintController implements InvocableController
{
public const EDITOR_SQL_PREFIX = [
private const EDITOR_SQL_PREFIX = [
'event' => "DELIMITER $$ CREATE EVENT `a` ON SCHEDULE EVERY MINUTE DO\n",
'routine' => "DELIMITER $$ CREATE PROCEDURE `a`()\n",
'trigger' => "DELIMITER $$ CREATE TRIGGER `a` AFTER INSERT ON `b` FOR EACH ROW\n",

View File

@ -86,10 +86,10 @@ use function trim;
*/
class Results
{
public const POSITION_LEFT = 'left';
public const POSITION_RIGHT = 'right';
public const POSITION_BOTH = 'both';
public const POSITION_NONE = 'none';
private const POSITION_LEFT = 'left';
private const POSITION_RIGHT = 'right';
private const POSITION_BOTH = 'both';
private const POSITION_NONE = 'none';
public const DISPLAY_FULL_TEXT = 'F';
public const DISPLAY_PARTIAL_TEXT = 'P';
@ -101,15 +101,14 @@ class Results
public const GEOMETRY_DISP_WKT = 'WKT';
public const GEOMETRY_DISP_WKB = 'WKB';
public const SMART_SORT_ORDER = 'SMART';
public const ASCENDING_SORT_DIR = 'ASC';
public const DESCENDING_SORT_DIR = 'DESC';
private const SMART_SORT_ORDER = 'SMART';
private const ASCENDING_SORT_DIR = 'ASC';
private const DESCENDING_SORT_DIR = 'DESC';
public const TABLE_TYPE_INNO_DB = 'InnoDB';
public const ALL_ROWS = 'all';
public const ACTION_LINK_CONTENT_ICONS = 'icons';
public const ACTION_LINK_CONTENT_TEXT = 'text';
private const ACTION_LINK_CONTENT_ICONS = 'icons';
private const ACTION_LINK_CONTENT_TEXT = 'text';
/**
* the total number of rows returned by the SQL query without any appended "LIMIT" clause programmatically