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
2525 public const CODE_DOES_NOT_MATCH_PATTERN = 'DoesNotMatchPattern ' ;
2626 public const CODE_MEMBER_DOES_NOT_MATCH_PATTERN = 'MemberDoesNotMatchPattern ' ;
2727 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 ' ;
2829 private const PATTERN_CAMEL_CASE_OR_UNUSED = '\b(([a-zA-Z][a-zA-Z0-9]*?([A-Z][a-zA-Z0-9]*?)*?)|_+)\b ' ;
2930
3031 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 ;
3334
3435 /**
3536 * Processes this test, when one of its tokens is encountered.
You can’t perform that action at this time.
0 commit comments