File tree 7 files changed +21
-24
lines changed
7 files changed +21
-24
lines changed Original file line number Diff line number Diff line change 15
15
*/
16
16
class DiscouragedDependenciesSniff implements Sniff
17
17
{
18
- const CONSTRUCT_METHOD_NAME = '__construct ' ;
18
+ private const CONSTRUCT_METHOD_NAME = '__construct ' ;
19
19
20
20
/**
21
21
* String representation of warning.
Original file line number Diff line number Diff line change 16
16
*/
17
17
class HtmlDirectiveSniff implements Sniff
18
18
{
19
- const CONSTRUCTION_DEPEND_PATTERN = '/{{depend\s*(.*?)}}(.*?){{ \\/depend\s*}}/si ' ;
20
- const CONSTRUCTION_IF_PATTERN = '/{{if\s*(.*?)}}(.*?)({{else}}(.*?))?{{ \\/if\s*}}/si ' ;
21
- const LOOP_PATTERN = '/{{for(?P<loopItem>.*? )(in)(?P<loopData>.*?)}}(?P<loopBody>.*?){{\/for}}/si ' ;
22
- const CONSTRUCTION_PATTERN = '/{{([a-z]{0,10})(.*?)}}(?:(.*?)(?:{{\/(?: \\1)}}))?/si ' ;
19
+ private const CONSTRUCTION_DEPEND_PATTERN = '/{{depend\s*(.*?)}}(.*?){{ \\/depend\s*}}/si ' ;
20
+ private const CONSTRUCTION_IF_PATTERN = '/{{if\s*(.*?)}}(.*?)({{else}}(.*?))?{{ \\/if\s*}}/si ' ;
21
+ private const LOOP_PATTERN = '/{{for(?P<loopItem>.*? )(in)(?P<loopData>.*?)}}(?P<loopBody>.*?){{\/for}}/si ' ;
22
+ private const CONSTRUCTION_PATTERN = '/{{([a-z]{0,10})(.*?)}}(?:(.*?)(?:{{\/(?: \\1)}}))?/si ' ;
23
23
24
24
/**
25
25
* @var array
Original file line number Diff line number Diff line change 19
19
*/
20
20
class CommentLevelsSniff implements Sniff
21
21
{
22
- const COMMENT_STRING = '// ' ;
22
+ private const COMMENT_STRING = '// ' ;
23
23
24
- const FIRST_LEVEL_COMMENT = '_____________________________________________ ' ;
24
+ private const FIRST_LEVEL_COMMENT = '_____________________________________________ ' ;
25
25
26
- const SECOND_LEVEL_COMMENT = '-- ' ;
26
+ private const SECOND_LEVEL_COMMENT = '-- ' ;
27
27
28
28
/**
29
29
* @var array
Original file line number Diff line number Diff line change 10
10
*/
11
11
interface TokenizerSymbolsInterface
12
12
{
13
- const TOKENIZER_CSS = 'CSS ' ;
13
+ public const TOKENIZER_CSS = 'CSS ' ;
14
14
15
15
/**#@+
16
16
* Symbols for usage into Sniffers
17
17
*/
18
- const BITWISE_AND = '& ' ;
19
- const COLON = '; ' ;
20
- const OPEN_PARENTHESIS = '( ' ;
21
- const CLOSE_PARENTHESIS = ') ' ;
22
- const NEW_LINE = "\n" ;
23
- const WHITESPACE = ' ' ;
24
- const DOUBLE_WHITESPACE = ' ' ;
25
- const INDENT_SPACES = ' ' ;
18
+ public const BITWISE_AND = '& ' ;
19
+ public const COLON = '; ' ;
20
+ public const OPEN_PARENTHESIS = '( ' ;
21
+ public const CLOSE_PARENTHESIS = ') ' ;
22
+ public const NEW_LINE = "\n" ;
23
+ public const WHITESPACE = ' ' ;
24
+ public const DOUBLE_WHITESPACE = ' ' ;
25
+ public const INDENT_SPACES = ' ' ;
26
26
/**#@-*/
27
27
}
Original file line number Diff line number Diff line change 19
19
*/
20
20
class ZeroUnitsSniff implements Sniff
21
21
{
22
- const CSS_PROPERTY_UNIT_PX = 'px ' ;
23
- const CSS_PROPERTY_UNIT_EM = 'em ' ;
24
- const CSS_PROPERTY_UNIT_REM = 'rem ' ;
22
+ private const CSS_PROPERTY_UNIT_PX = 'px ' ;
23
+ private const CSS_PROPERTY_UNIT_EM = 'em ' ;
24
+ private const CSS_PROPERTY_UNIT_REM = 'rem ' ;
25
25
26
26
/**
27
27
* @var array
Original file line number Diff line number Diff line change 13
13
*/
14
14
class DeprecatedModelMethodSniff implements Sniff
15
15
{
16
- const RESOURCE_METHOD = "getResource " ;
16
+ private const RESOURCE_METHOD = "getResource " ;
17
17
18
18
/**
19
19
* String representation of warning.
Original file line number Diff line number Diff line change 735
735
<rule ref =" PSR12.Properties.ConstantVisibility" >
736
736
<severity >5</severity >
737
737
<type >warning</type >
738
- <exclude-pattern >*/_files/*</exclude-pattern >
739
- <exclude-pattern >*/Test/*</exclude-pattern >
740
- <exclude-pattern >*Test.php</exclude-pattern >
741
738
</rule >
742
739
</ruleset >
You can’t perform that action at this time.
0 commit comments