File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/Cdn77/Sniffs/NamingConventions Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -25,11 +25,12 @@ class ValidVariableNameSniff extends AbstractVariableSniff
25
25
public const CODE_DOES_NOT_MATCH_PATTERN = 'DoesNotMatchPattern ' ;
26
26
public const CODE_MEMBER_DOES_NOT_MATCH_PATTERN = 'MemberDoesNotMatchPattern ' ;
27
27
public const CODE_STRING_DOES_NOT_MATCH_PATTERN = 'StringDoesNotMatchPattern ' ;
28
+ private const PATTERN_CAMEL_CASE = '\b([a-zA-Z][a-zA-Z0-9]*?([A-Z][a-zA-Z0-9]*?)*?)\b ' ;
28
29
private const PATTERN_CAMEL_CASE_OR_UNUSED = '\b(([a-zA-Z][a-zA-Z0-9]*?([A-Z][a-zA-Z0-9]*?)*?)|_+)\b ' ;
29
30
30
31
public string $ pattern = self ::PATTERN_CAMEL_CASE_OR_UNUSED ;
31
- public string $ memberPattern = self ::PATTERN_CAMEL_CASE_OR_UNUSED ;
32
- public string $ stringPattern = self ::PATTERN_CAMEL_CASE_OR_UNUSED ;
32
+ public string $ memberPattern = self ::PATTERN_CAMEL_CASE ;
33
+ public string $ stringPattern = self ::PATTERN_CAMEL_CASE ;
33
34
34
35
/**
35
36
* Processes this test, when one of its tokens is encountered.
You can’t perform that action at this time.
0 commit comments