Skip to content

Commit 91ea4be

Browse files
Merge pull request #19212 from kamil-tekiela/privatize-const
Privatize constants
2 parents 5797fd6 + 65cbcfa commit 91ea4be

2 files changed

Lines changed: 10 additions & 11 deletions

File tree

src/Controllers/LintController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121
final class LintController implements InvocableController
2222
{
23-
public const EDITOR_SQL_PREFIX = [
23+
private const EDITOR_SQL_PREFIX = [
2424
'event' => "DELIMITER $$ CREATE EVENT `a` ON SCHEDULE EVERY MINUTE DO\n",
2525
'routine' => "DELIMITER $$ CREATE PROCEDURE `a`()\n",
2626
'trigger' => "DELIMITER $$ CREATE TRIGGER `a` AFTER INSERT ON `b` FOR EACH ROW\n",

src/Display/Results.php

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@
8686
*/
8787
class Results
8888
{
89-
public const POSITION_LEFT = 'left';
90-
public const POSITION_RIGHT = 'right';
91-
public const POSITION_BOTH = 'both';
92-
public const POSITION_NONE = 'none';
89+
private const POSITION_LEFT = 'left';
90+
private const POSITION_RIGHT = 'right';
91+
private const POSITION_BOTH = 'both';
92+
private const POSITION_NONE = 'none';
9393

9494
public const DISPLAY_FULL_TEXT = 'F';
9595
public const DISPLAY_PARTIAL_TEXT = 'P';
@@ -101,15 +101,14 @@ class Results
101101
public const GEOMETRY_DISP_WKT = 'WKT';
102102
public const GEOMETRY_DISP_WKB = 'WKB';
103103

104-
public const SMART_SORT_ORDER = 'SMART';
105-
public const ASCENDING_SORT_DIR = 'ASC';
106-
public const DESCENDING_SORT_DIR = 'DESC';
104+
private const SMART_SORT_ORDER = 'SMART';
105+
private const ASCENDING_SORT_DIR = 'ASC';
106+
private const DESCENDING_SORT_DIR = 'DESC';
107107

108-
public const TABLE_TYPE_INNO_DB = 'InnoDB';
109108
public const ALL_ROWS = 'all';
110109

111-
public const ACTION_LINK_CONTENT_ICONS = 'icons';
112-
public const ACTION_LINK_CONTENT_TEXT = 'text';
110+
private const ACTION_LINK_CONTENT_ICONS = 'icons';
111+
private const ACTION_LINK_CONTENT_TEXT = 'text';
113112

114113
/**
115114
* the total number of rows returned by the SQL query without any appended "LIMIT" clause programmatically

0 commit comments

Comments
 (0)