Skip to content

Commit f789e7e

Browse files
Merge branch '4.4' into 5.1
* 4.4: Update .php_cs.dist Apply "visibility_required" CS rule to constants
2 parents b8d8eb0 + 74bd82e commit f789e7e

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

Node/Specificity.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
*/
2626
class Specificity
2727
{
28-
const A_FACTOR = 100;
29-
const B_FACTOR = 10;
30-
const C_FACTOR = 1;
28+
public const A_FACTOR = 100;
29+
public const B_FACTOR = 10;
30+
public const C_FACTOR = 1;
3131

3232
private $a;
3333
private $b;

Parser/Token.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323
*/
2424
class Token
2525
{
26-
const TYPE_FILE_END = 'eof';
27-
const TYPE_DELIMITER = 'delimiter';
28-
const TYPE_WHITESPACE = 'whitespace';
29-
const TYPE_IDENTIFIER = 'identifier';
30-
const TYPE_HASH = 'hash';
31-
const TYPE_NUMBER = 'number';
32-
const TYPE_STRING = 'string';
26+
public const TYPE_FILE_END = 'eof';
27+
public const TYPE_DELIMITER = 'delimiter';
28+
public const TYPE_WHITESPACE = 'whitespace';
29+
public const TYPE_IDENTIFIER = 'identifier';
30+
public const TYPE_HASH = 'hash';
31+
public const TYPE_NUMBER = 'number';
32+
public const TYPE_STRING = 'string';
3333

3434
private $type;
3535
private $value;

XPath/Extension/NodeExtension.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
*/
2828
class NodeExtension extends AbstractExtension
2929
{
30-
const ELEMENT_NAME_IN_LOWER_CASE = 1;
31-
const ATTRIBUTE_NAME_IN_LOWER_CASE = 2;
32-
const ATTRIBUTE_VALUE_IN_LOWER_CASE = 4;
30+
public const ELEMENT_NAME_IN_LOWER_CASE = 1;
31+
public const ATTRIBUTE_NAME_IN_LOWER_CASE = 2;
32+
public const ATTRIBUTE_VALUE_IN_LOWER_CASE = 4;
3333

3434
private $flags;
3535

0 commit comments

Comments
 (0)