Skip to content

Commit

Permalink
Add $charset_collate to list of global WP snake_case vars
Browse files Browse the repository at this point in the history
Signed-off-by: Giuseppe Mazzapica <[email protected]>
  • Loading branch information
gmazzap authored Mar 13, 2024
1 parent 427b7ab commit 4bdeb30
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions Inpsyde/Sniffs/CodeQuality/VariablesNameSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,27 +47,28 @@ class VariablesNameSniff implements Sniff
];

public const WP_GLOBALS = [
'$charset_collate',
'$current_user',
'$is_iphone',
'$interim_login',
'$is_apache',
'$is_chrome',
'$is_safari',
'$is_NS4',
'$is_opera',
'$is_macIE',
'$is_winIE',
'$is_edge',
'$is_gecko',
'$is_lynx',
'$is_IE',
'$is_edge',
'$is_apache',
'$is_IIS',
'$is_iis7',
'$tinymce_version',
'$is_iphone',
'$is_lynx',
'$is_macIE',
'$is_NS4',
'$is_opera',
'$is_safari',
'$is_winIE',
'$manifest_version',
'$required_php_version',
'$required_mysql_version',
'$required_php_version',
'$super_admins',
'$interim_login',
'$tinymce_version',
];

public string $checkType = 'camelCase';
Expand Down

0 comments on commit 4bdeb30

Please sign in to comment.