File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
WordPress/Tests/NamingConventions Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -511,13 +511,13 @@ function aa_do_something(){}
511
511
512
512
// The following line mimics an empty prefix value.
513
513
// phpcs:set WordPress.NamingConventions.PrefixAllGlobals prefixes[] ,
514
- function aaa_do_something (){}
514
+ function aaaa_do_something (){}
515
515
516
516
// phpcs:set WordPress.NamingConventions.PrefixAllGlobals prefixes[] 😊
517
517
function 😊_do_something (){}
518
518
519
- // phpcs:set WordPress.NamingConventions.PrefixAllGlobals prefixes[] 😊😊
520
- function 😊😊_do_something (){}
519
+ // phpcs:set WordPress.NamingConventions.PrefixAllGlobals prefixes[] 😊😊😊
520
+ function 😊😊😊 _do_something (){}
521
521
522
522
// Reset to the standard test prefixes.
523
523
// phpcs:set WordPress.NamingConventions.PrefixAllGlobals prefixes[] acronym,tgmpa
@@ -673,7 +673,4 @@ class WP_Atom_Server {
673
673
}
674
674
}
675
675
676
- // phpcs:set WordPress.NamingConventions.PrefixAllGlobals prefixes[] tod
677
- function tod_something () {}
678
-
679
676
// phpcs:set WordPress.NamingConventions.PrefixAllGlobals prefixes[]
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ public function getErrorList( $testFile = 'PrefixAllGlobalsUnitTest.1.inc' ) {
34
34
switch ( $ testFile ) {
35
35
case 'PrefixAllGlobalsUnitTest.1.inc ' :
36
36
return array (
37
- 1 => 9 , // 2 x error for blocked prefix passed. 5 x error for short prefixes. 2 x no prefix.
37
+ 1 => 8 , // 2 x error for blocked prefix passed. 4 x error for short prefixes. 2 x no prefix.
38
38
10 => 1 ,
39
39
18 => 1 ,
40
40
21 => 1 ,
@@ -96,7 +96,6 @@ public function getErrorList( $testFile = 'PrefixAllGlobalsUnitTest.1.inc' ) {
96
96
616 => 1 ,
97
97
617 => 1 ,
98
98
633 => 1 ,
99
- 677 => 1 ,
100
99
);
101
100
102
101
case 'PrefixAllGlobalsUnitTest.4.inc ' :
You can’t perform that action at this time.
0 commit comments