File tree 4 files changed +11
-11
lines changed
4 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 15
15
},
16
16
"require" : {
17
17
"php" : " ^8.3" ,
18
- "doctrine/coding-standard" : " ^12 .0" ,
19
- "slevomat/coding-standard" : " 8.15 " ,
18
+ "doctrine/coding-standard" : " ^13 .0" ,
19
+ "slevomat/coding-standard" : " ^8.16 " ,
20
20
"squizlabs/php_codesniffer" : " ^3.11.3"
21
21
},
22
22
"require-dev" : {
Original file line number Diff line number Diff line change 26
26
27
27
class ValidConstantNameSniff implements Sniff
28
28
{
29
- public const CodeClassConstantNotMatchPattern = 'ClassConstantNotUpperCase ' ;
30
- public const CodeConstantNotMatchPattern = 'ConstantNotUpperCase ' ;
31
- private const PatternPascalCase = '\b([A-Z][a-zA-Z0-9]*?([A-Z][a-zA-Z0-9]*?)*?)\b ' ;
29
+ public const string CodeClassConstantNotMatchPattern = 'ClassConstantNotUpperCase ' ;
30
+ public const string CodeConstantNotMatchPattern = 'ConstantNotUpperCase ' ;
31
+ private const string PatternPascalCase = '\b([A-Z][a-zA-Z0-9]*?([A-Z][a-zA-Z0-9]*?)*?)\b ' ;
32
32
33
33
public string $ pattern = self ::PatternPascalCase;
34
34
Original file line number Diff line number Diff line change 22
22
23
23
class ValidVariableNameSniff extends AbstractVariableSniff
24
24
{
25
- public const CodeDoesNotMatchPattern = 'DoesNotMatchPattern ' ;
26
- public const CodeMemberDoesNotMatchPattern = 'MemberDoesNotMatchPattern ' ;
27
- public const CodeStringDoesNotMatchPattern = 'StringDoesNotMatchPattern ' ;
28
- private const PatternCamelCase = '\b([a-zA-Z][a-zA-Z0-9]*?([A-Z][a-zA-Z0-9]*?)*?)\b ' ;
29
- private const PatternCamelCaseOrUnused = '\b(([a-zA-Z][a-zA-Z0-9]*?([A-Z][a-zA-Z0-9]*?)*?)|_+)\b ' ;
25
+ public const string CodeDoesNotMatchPattern = 'DoesNotMatchPattern ' ;
26
+ public const string CodeMemberDoesNotMatchPattern = 'MemberDoesNotMatchPattern ' ;
27
+ public const string CodeStringDoesNotMatchPattern = 'StringDoesNotMatchPattern ' ;
28
+ private const string PatternCamelCase = '\b([a-zA-Z][a-zA-Z0-9]*?([A-Z][a-zA-Z0-9]*?)*?)\b ' ;
29
+ private const string PatternCamelCaseOrUnused = '\b(([a-zA-Z][a-zA-Z0-9]*?([A-Z][a-zA-Z0-9]*?)*?)|_+)\b ' ;
30
30
31
31
public string $ pattern = self ::PatternCamelCaseOrUnused;
32
32
public string $ memberPattern = self ::PatternCamelCase;
Original file line number Diff line number Diff line change 56
56
*/
57
57
final class AlphabeticallyOrderedConstantsSniff implements Sniff
58
58
{
59
- public const CodeIncorrectConstantOrder = 'IncorrectConstantOrder ' ;
59
+ public const string CodeIncorrectConstantOrder = 'IncorrectConstantOrder ' ;
60
60
61
61
public function register (): array
62
62
{
You can’t perform that action at this time.
0 commit comments