Skip to content

Instantly share code, notes, and snippets.

@jrfnl
Last active May 5, 2022
Embed
What would you like to do?
Reserved names used as parameter names in WordPress - Trac ticket: #55650 https://core.trac.wordpress.org/ticket/55650 - Last updated: 2022-05-05
Command used: `phpcs -ps . --sniffs=Universal.NamingConventions.NoReservedKeywordParameterNames --report=full,summary,source --extensions=php` (will not work by default)
FILE: src\wp-admin\includes\template.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
907 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $parent
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.parentFound)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\blocks.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
1023 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $default
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.defaultFound)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\class-wp-text-diff-renderer-inline.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
26 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\class-wp-text-diff-renderer-table.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------
249 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $final
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.finalFound)
360 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $final
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.finalFound)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\class-wp-theme-json.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
1547 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $default
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.defaultFound)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\compat.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
----------------------------------------------------------------------------------------------------
11 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
352 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $var (Universal.NamingConventions.NoReservedKeywordParameterNames.varFound)
373 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $var (Universal.NamingConventions.NoReservedKeywordParameterNames.varFound)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\formatting.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 17 WARNINGS AFFECTING 16 LINES
----------------------------------------------------------------------------------------------------
934 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
1014 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
1097 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
1594 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
2400 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $class
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.classFound)
2735 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
2756 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
2771 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
3087 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
3548 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
3567 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $match
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.matchFound)
3583 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
3605 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
5027 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
5027 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $array
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.arrayFound)
5082 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
5384 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\functions.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 24 WARNINGS AFFECTING 23 LINES
----------------------------------------------------------------------------------------------------
1273 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $array
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.arrayFound)
1878 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $echo
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.echoFound)
1904 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $echo
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.echoFound)
1928 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $echo
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.echoFound)
4340 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
4814 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $list
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.listFound)
4831 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $list
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.listFound)
4846 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $list
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.listFound)
4861 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $array
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.arrayFound)
4901 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $array
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.arrayFound)
4901 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $default
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.defaultFound)
4950 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $array
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.arrayFound)
5015 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
5114 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $list
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.listFound)
5156 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $list
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.listFound)
5178 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $list
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.listFound)
5201 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $list
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.listFound)
5348 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $function
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.functionFound)
5437 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $class
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.classFound)
5632 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $function
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.functionFound)
5786 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $function
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.functionFound)
5881 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $default
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.defaultFound)
7308 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $var
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.varFound)
8453 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $array
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.arrayFound)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\functions.wp-scripts.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------
41 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $function
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.functionFound)
396 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $list (Universal.NamingConventions.NoReservedKeywordParameterNames.listFound)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\functions.wp-styles.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
211 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $list (Universal.NamingConventions.NoReservedKeywordParameterNames.listFound)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\general-template.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 11 WARNINGS AFFECTING 10 LINES
----------------------------------------------------------------------------------------------------
376 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $echo
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.echoFound)
682 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $echo
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.echoFound)
2226 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $echo
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.echoFound)
2519 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $echo
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.echoFound)
2594 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $echo
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.echoFound)
4813 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $echo
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.echoFound)
4831 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $echo
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.echoFound)
4849 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $echo
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.echoFound)
4867 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $readonly
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.readonlyFound)
4867 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $echo
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.echoFound)
4895 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $echo
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.echoFound)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\kses.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 16 WARNINGS AFFECTING 16 LINES
----------------------------------------------------------------------------------------------------
712 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
735 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
897 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
941 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
1014 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $match
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.matchFound)
1043 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
1653 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
1680 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
1704 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
1743 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
1760 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
1796 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
1834 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
1985 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
2002 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $match
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.matchFound)
2016 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $match
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.matchFound)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\l10n.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
226 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\link-template.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 6 WARNINGS AFFECTING 6 LINES
----------------------------------------------------------------------------------------------------
47 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
1131 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $echo
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.echoFound)
1498 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $class
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.classFound)
2452 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $echo
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.echoFound)
2550 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $echo
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.echoFound)
2900 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $class
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.classFound)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\load.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
1116 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $object
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.objectFound)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\ms-blogs.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
356 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $default
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.defaultFound)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\ms-site.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
1266 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $public
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.publicFound)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\option.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 5 WARNINGS AFFECTING 5 LINES
----------------------------------------------------------------------------------------------------
78 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $default
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.defaultFound)
1126 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $default
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.defaultFound)
1306 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $default
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.defaultFound)
1373 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $default
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.defaultFound)
2505 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $default
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.defaultFound)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\php-compat\readonly.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
34 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $readonly
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.readonlyFound)
34 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $echo (Universal.NamingConventions.NoReservedKeywordParameterNames.echoFound)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\pluggable.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
----------------------------------------------------------------------------------------------------
1303 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $die
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.dieFound)
1549 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $default
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.defaultFound)
2744 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $default
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.defaultFound)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\pomo\po.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
----------------------------------------------------------------------------------------------------
116 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
146 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
187 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\pomo\streams.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
----------------------------------------------------------------------------------------------------
91 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
103 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
116 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\post-template.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 5 WARNINGS AFFECTING 5 LINES
----------------------------------------------------------------------------------------------------
42 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $echo (Universal.NamingConventions.NoReservedKeywordParameterNames.echoFound)
457 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $class
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.classFound)
483 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $class
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.classFound)
593 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $class
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.classFound)
608 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $class
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.classFound)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\post.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------
2024 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $object
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.objectFound)
6287 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $parent
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.parentFound)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\query.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------
26 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $var (Universal.NamingConventions.NoReservedKeywordParameterNames.varFound)
26 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $default
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.defaultFound)
73 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $var (Universal.NamingConventions.NoReservedKeywordParameterNames.varFound)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\rest-api\class-wp-rest-server.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------
778 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $namespace
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.namespaceFound)
835 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $namespace
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.namespaceFound)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\rest-api\endpoints\class-wp-rest-controller.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
448 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $object
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.objectFound)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\rest-api\endpoints\class-wp-rest-revisions-controller.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
140 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $parent
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.parentFound)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\rest-api\endpoints\class-wp-rest-widget-types-controller.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
88 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\rest-api\endpoints\class-wp-rest-widgets-controller.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
862 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\rest-api.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 5 WARNINGS AFFECTING 5 LINES
----------------------------------------------------------------------------------------------------
34 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $namespace
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.namespaceFound)
633 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $function
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.functionFound)
657 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $function
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.functionFound)
681 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $function
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.functionFound)
1646 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $array
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.arrayFound)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\rewrite.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
250 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $function
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.functionFound)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\sitemaps\class-wp-sitemaps.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
256 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $public
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.publicFound)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\taxonomy.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
----------------------------------------------------------------------------------------------------
272 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $object
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.objectFound)
1513 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $parent
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.parentFound)
4917 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $parent
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.parentFound)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\template.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------
697 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $require_once
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.require_onceFound)
749 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $require_once
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.require_onceFound)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\theme.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------
1003 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $default
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.defaultFound)
3111 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $include
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.includeFound)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\user.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------
711 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $global
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.globalFound)
738 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $global
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.globalFound)
----------------------------------------------------------------------------------------------------
FILE: src\wp-includes\wp-db.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
----------------------------------------------------------------------------------------------------
1235 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
1253 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
1344 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
3149 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\includes\abstract-testcase.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
----------------------------------------------------------------------------------------------------
617 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $function
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.functionFound)
628 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $function
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.functionFound)
690 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $object
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.objectFound)
864 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $array
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.arrayFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\includes\class-wp-test-stream.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
177 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $var (Universal.NamingConventions.NoReservedKeywordParameterNames.varFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\includes\factory\class-wp-unittest-factory-callback-after-create.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
26 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $object
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.objectFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\includes\factory\class-wp-unittest-factory-for-attachment.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
47 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $parent
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.parentFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\includes\factory\class-wp-unittest-factory-for-thing.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------
41 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $object
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.objectFound)
180 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $function
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.functionFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\includes\functions.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
79 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $function
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.functionFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\includes\spy-rest-server.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
80 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $namespace
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.namespaceFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\includes\utils.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------
351 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $callable
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.callableFound)
358 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $array
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.arrayFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\tests\admin\includesFile.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
373 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $false
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.falseFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\tests\block-supports\elements.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
13 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\tests\compat\mbStrlen.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
----------------------------------------------------------------------------------------------------
22 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
29 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
38 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\tests\compat\mbSubstr.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
----------------------------------------------------------------------------------------------------
22 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
29 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
38 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\tests\cron.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
413 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $null (Universal.NamingConventions.NoReservedKeywordParameterNames.nullFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\tests\customize\manager.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
3356 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $class
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.classFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\tests\customize\nav-menus.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
65 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $object
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.objectFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\tests\customize\setting.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------
319 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $default
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.defaultFound)
342 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $default
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.defaultFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\tests\file.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
189 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $case (Universal.NamingConventions.NoReservedKeywordParameterNames.caseFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\tests\formatting\sanitizeTextField.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
131 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\tests\formatting\sanitizeTrackbackUrls.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
11 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $break (Universal.NamingConventions.NoReservedKeywordParameterNames.breakFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\tests\functions\deprecated.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
73 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $function
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.functionFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\tests\functions\doEnclose.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
262 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $false
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.falseFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\tests\functions\wpListFilter.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
20 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $list (Universal.NamingConventions.NoReservedKeywordParameterNames.listFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\tests\functions\wpListPluck.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
203 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $list (Universal.NamingConventions.NoReservedKeywordParameterNames.listFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\tests\functions\wpListSort.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------
18 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $list (Universal.NamingConventions.NoReservedKeywordParameterNames.listFound)
343 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $list (Universal.NamingConventions.NoReservedKeywordParameterNames.listFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\tests\hooks\addFilter.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 5 WARNINGS AFFECTING 5 LINES
----------------------------------------------------------------------------------------------------
175 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
179 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
186 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
196 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
200 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\tests\http\wpGetHttpHeaders.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
52 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $false (Universal.NamingConventions.NoReservedKeywordParameterNames.falseFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\tests\kses.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
----------------------------------------------------------------------------------------------------
17 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
65 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
172 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
1969 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $global
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.globalFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\tests\option\themeMods.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
49 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $default
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.defaultFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\tests\pluggable.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
16 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $function
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.functionFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\tests\post.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
1319 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $default
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.defaultFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\tests\rest-api\rest-attachments-controller.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
1644 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $object
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.objectFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\tests\rest-api\rest-autosaves-controller.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
512 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $object
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.objectFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\tests\rest-api\rest-block-directory-controller.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
265 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $return
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.returnFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\tests\rest-api\rest-categories-controller.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
1183 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $object
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.objectFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\tests\rest-api\rest-comments-controller.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
3293 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $object
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.objectFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\tests\rest-api\rest-pattern-directory-controller.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
546 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $return
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.returnFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\tests\rest-api\rest-plugins-controller.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
1151 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $return
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.returnFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\tests\rest-api\rest-post-statuses-controller.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
203 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $object
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.objectFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\tests\rest-api\rest-post-types-controller.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
215 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $object
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.objectFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\tests\rest-api\rest-posts-controller.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
4479 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $object
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.objectFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\tests\rest-api\rest-revisions-controller.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
396 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $object
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.objectFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\tests\rest-api\rest-tags-controller.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
1395 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $object
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.objectFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\tests\rest-api\rest-users-controller.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
3070 | WARNING | It is recommended not to use reserved keywords as function parameter names.
| | Found: $object
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.objectFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\tests\rest-api.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------
878 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
910 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $string
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\tests\shortcode.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
----------------------------------------------------------------------------------------------------
857 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $return
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.returnFound)
919 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $return
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.returnFound)
923 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $return
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.returnFound)
927 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $return
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.returnFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\tests\theme\wpThemeJsonResolver.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
208 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $array
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.arrayFound)
----------------------------------------------------------------------------------------------------
FILE: tests\phpunit\tests\widgets\wpWidgetMedia.php
----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
389 | WARNING | It is recommended not to use reserved keywords as function parameter names. Found:
| | $object
| | (Universal.NamingConventions.NoReservedKeywordParameterNames.objectFound)
----------------------------------------------------------------------------------------------------
Time: 1 mins, 45.14 secs; Memory: 134MB
PHP CODE SNIFFER REPORT SUMMARY
----------------------------------------------------------------------------------------------------
FILE ERRORS WARNINGS
----------------------------------------------------------------------------------------------------
src\wp-admin\includes\template.php 0 1
src\wp-includes\blocks.php 0 1
src\wp-includes\class-wp-text-diff-renderer-inline.php 0 1
src\wp-includes\class-wp-text-diff-renderer-table.php 0 2
src\wp-includes\class-wp-theme-json.php 0 1
src\wp-includes\compat.php 0 3
src\wp-includes\formatting.php 0 17
src\wp-includes\functions.php 0 24
src\wp-includes\functions.wp-scripts.php 0 2
src\wp-includes\functions.wp-styles.php 0 1
src\wp-includes\general-template.php 0 11
src\wp-includes\kses.php 0 16
src\wp-includes\l10n.php 0 1
src\wp-includes\link-template.php 0 6
src\wp-includes\load.php 0 1
src\wp-includes\ms-blogs.php 0 1
src\wp-includes\ms-site.php 0 1
src\wp-includes\option.php 0 5
src\wp-includes\pluggable.php 0 3
src\wp-includes\post-template.php 0 5
src\wp-includes\post.php 0 2
src\wp-includes\query.php 0 3
src\wp-includes\rest-api.php 0 5
src\wp-includes\rewrite.php 0 1
src\wp-includes\taxonomy.php 0 3
src\wp-includes\template.php 0 2
src\wp-includes\theme.php 0 2
src\wp-includes\user.php 0 2
src\wp-includes\wp-db.php 0 4
src\wp-includes\php-compat\readonly.php 0 2
src\wp-includes\pomo\po.php 0 3
src\wp-includes\pomo\streams.php 0 3
src\wp-includes\rest-api\class-wp-rest-server.php 0 2
src\wp-includes\rest-api\endpoints\class-wp-rest-controller.php 0 1
src\wp-includes\rest-api\endpoints\class-wp-rest-revisions-controller.php 0 1
src\wp-includes\rest-api\endpoints\class-wp-rest-widget-types-controller.php 0 1
src\wp-includes\rest-api\endpoints\class-wp-rest-widgets-controller.php 0 1
src\wp-includes\sitemaps\class-wp-sitemaps.php 0 1
tests\phpunit\includes\abstract-testcase.php 0 4
tests\phpunit\includes\class-wp-test-stream.php 0 1
tests\phpunit\includes\functions.php 0 1
tests\phpunit\includes\spy-rest-server.php 0 1
tests\phpunit\includes\utils.php 0 2
tests\phpunit\includes\factory\class-wp-unittest-factory-callback-after-create.php 0 1
tests\phpunit\includes\factory\class-wp-unittest-factory-for-attachment.php 0 1
tests\phpunit\includes\factory\class-wp-unittest-factory-for-thing.php 0 2
tests\phpunit\tests\cron.php 0 1
tests\phpunit\tests\file.php 0 1
tests\phpunit\tests\kses.php 0 4
tests\phpunit\tests\pluggable.php 0 1
tests\phpunit\tests\post.php 0 1
tests\phpunit\tests\rest-api.php 0 2
tests\phpunit\tests\shortcode.php 0 4
tests\phpunit\tests\admin\includesFile.php 0 1
tests\phpunit\tests\block-supports\elements.php 0 1
tests\phpunit\tests\compat\mbStrlen.php 0 3
tests\phpunit\tests\compat\mbSubstr.php 0 3
tests\phpunit\tests\customize\manager.php 0 1
tests\phpunit\tests\customize\nav-menus.php 0 1
tests\phpunit\tests\customize\setting.php 0 2
tests\phpunit\tests\formatting\sanitizeTextField.php 0 1
tests\phpunit\tests\formatting\sanitizeTrackbackUrls.php 0 1
tests\phpunit\tests\functions\deprecated.php 0 1
tests\phpunit\tests\functions\doEnclose.php 0 1
tests\phpunit\tests\functions\wpListFilter.php 0 1
tests\phpunit\tests\functions\wpListPluck.php 0 1
tests\phpunit\tests\functions\wpListSort.php 0 2
tests\phpunit\tests\hooks\addFilter.php 0 5
tests\phpunit\tests\http\wpGetHttpHeaders.php 0 1
tests\phpunit\tests\option\themeMods.php 0 1
tests\phpunit\tests\rest-api\rest-attachments-controller.php 0 1
tests\phpunit\tests\rest-api\rest-autosaves-controller.php 0 1
tests\phpunit\tests\rest-api\rest-block-directory-controller.php 0 1
tests\phpunit\tests\rest-api\rest-categories-controller.php 0 1
tests\phpunit\tests\rest-api\rest-comments-controller.php 0 1
tests\phpunit\tests\rest-api\rest-pattern-directory-controller.php 0 1
tests\phpunit\tests\rest-api\rest-plugins-controller.php 0 1
tests\phpunit\tests\rest-api\rest-post-statuses-controller.php 0 1
tests\phpunit\tests\rest-api\rest-post-types-controller.php 0 1
tests\phpunit\tests\rest-api\rest-posts-controller.php 0 1
tests\phpunit\tests\rest-api\rest-revisions-controller.php 0 1
tests\phpunit\tests\rest-api\rest-tags-controller.php 0 1
tests\phpunit\tests\rest-api\rest-users-controller.php 0 1
tests\phpunit\tests\theme\wpThemeJsonResolver.php 0 1
tests\phpunit\tests\widgets\wpWidgetMedia.php 0 1
----------------------------------------------------------------------------------------------------
A TOTAL OF 0 ERRORS AND 211 WARNINGS WERE FOUND IN 85 FILES
----------------------------------------------------------------------------------------------------
PHP CODE SNIFFER VIOLATION SOURCE SUMMARY
----------------------------------------------------------------------------------------
SOURCE COUNT
----------------------------------------------------------------------------------------
Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound 63
Universal.NamingConventions.NoReservedKeywordParameterNames.objectFound 19
Universal.NamingConventions.NoReservedKeywordParameterNames.defaultFound 18
Universal.NamingConventions.NoReservedKeywordParameterNames.echoFound 18
Universal.NamingConventions.NoReservedKeywordParameterNames.functionFound 14
Universal.NamingConventions.NoReservedKeywordParameterNames.listFound 13
Universal.NamingConventions.NoReservedKeywordParameterNames.arrayFound 10
Universal.NamingConventions.NoReservedKeywordParameterNames.classFound 9
Universal.NamingConventions.NoReservedKeywordParameterNames.returnFound 7
Universal.NamingConventions.NoReservedKeywordParameterNames.parentFound 6
Universal.NamingConventions.NoReservedKeywordParameterNames.varFound 6
Universal.NamingConventions.NoReservedKeywordParameterNames.matchFound 4
Universal.NamingConventions.NoReservedKeywordParameterNames.namespaceFound 4
Universal.NamingConventions.NoReservedKeywordParameterNames.falseFound 3
Universal.NamingConventions.NoReservedKeywordParameterNames.globalFound 3
Universal.NamingConventions.NoReservedKeywordParameterNames.finalFound 2
Universal.NamingConventions.NoReservedKeywordParameterNames.publicFound 2
Universal.NamingConventions.NoReservedKeywordParameterNames.readonlyFound 2
Universal.NamingConventions.NoReservedKeywordParameterNames.require_onceFound 2
Universal.NamingConventions.NoReservedKeywordParameterNames.breakFound 1
Universal.NamingConventions.NoReservedKeywordParameterNames.callableFound 1
Universal.NamingConventions.NoReservedKeywordParameterNames.caseFound 1
Universal.NamingConventions.NoReservedKeywordParameterNames.dieFound 1
Universal.NamingConventions.NoReservedKeywordParameterNames.includeFound 1
Universal.NamingConventions.NoReservedKeywordParameterNames.nullFound 1
----------------------------------------------------------------------------------------
A TOTAL OF 211 SNIFF VIOLATIONS WERE FOUND IN 25 SOURCES
----------------------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment