Skip to content

Commit

Permalink
updated prefix globals
Browse files Browse the repository at this point in the history
  • Loading branch information
davidperezgar committed Sep 5, 2024
1 parent 406c8df commit 3650b7c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -511,13 +511,13 @@ function aa_do_something(){}

// The following line mimics an empty prefix value.
// phpcs:set WordPress.NamingConventions.PrefixAllGlobals prefixes[] ,
function aaa_do_something(){}
function aaaa_do_something(){}

// phpcs:set WordPress.NamingConventions.PrefixAllGlobals prefixes[] 😊
function 😊_do_something(){}

// phpcs:set WordPress.NamingConventions.PrefixAllGlobals prefixes[] 😊😊
function 😊😊_do_something(){}
// phpcs:set WordPress.NamingConventions.PrefixAllGlobals prefixes[] 😊😊😊
function 😊😊😊_do_something(){}

// Reset to the standard test prefixes.
// phpcs:set WordPress.NamingConventions.PrefixAllGlobals prefixes[] acronym,tgmpa
Expand Down Expand Up @@ -673,7 +673,4 @@ class WP_Atom_Server {
}
}

// phpcs:set WordPress.NamingConventions.PrefixAllGlobals prefixes[] tod
function tod_something() {}

// phpcs:set WordPress.NamingConventions.PrefixAllGlobals prefixes[]
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function getErrorList( $testFile = 'PrefixAllGlobalsUnitTest.1.inc' ) {
switch ( $testFile ) {
case 'PrefixAllGlobalsUnitTest.1.inc':
return array(
1 => 9, // 2 x error for blocked prefix passed. 5 x error for short prefixes. 2 x no prefix.
1 => 8, // 2 x error for blocked prefix passed. 4 x error for short prefixes. 2 x no prefix.
10 => 1,
18 => 1,
21 => 1,
Expand Down Expand Up @@ -96,7 +96,6 @@ public function getErrorList( $testFile = 'PrefixAllGlobalsUnitTest.1.inc' ) {
616 => 1,
617 => 1,
633 => 1,
677 => 1,
);

case 'PrefixAllGlobalsUnitTest.4.inc':
Expand Down

0 comments on commit 3650b7c

Please sign in to comment.