Add plugin template registration API #104009
Annotations
8 errors and 10 warnings
Run PHPCS on all Gutenberg files
Process completed with exit code 2.
|
Show PHPCS results in PR:
lib/class-wp-block-templates-registry.php#L8
The "WP_Block_Templates_Registry" class should be guarded against redeclaration.
|
Show PHPCS results in PR:
lib/compat/wordpress-6.6/block-template-utils.php#L348
Opening parenthesis of a multi-line function call must be the last content on the line
|
Show PHPCS results in PR:
lib/compat/wordpress-6.6/block-template-utils.php#L348
Only one argument is allowed per line in a multi-line function call
|
Show PHPCS results in PR:
lib/compat/wordpress-6.6/block-template-utils.php#L348
Expected 1 space after FUNCTION keyword; 0 found
|
Show PHPCS results in PR:
lib/compat/wordpress-6.6/block-template-utils.php#L355
Closing parenthesis of a multi-line function call must be on a line by itself
|
Show PHPCS results in PR:
lib/compat/wordpress-6.6/class-gutenberg-rest-templates-controller-6-6.php#L156
Use Yoda Condition checks, you must.
|
Show PHPCS results in PR
Process completed with exit code 1.
|
Show PHPCS results in PR:
lib/class-wp-block-templates-registry.php#L10
Array double arrow not aligned correctly; expected 6 space(s) between "'wp_template'" and double arrow, but found 1.
|
Show PHPCS results in PR:
lib/class-wp-block-templates-registry.php#L19
Equals sign not aligned with surrounding assignments; expected 6 spaces but found 1 space
|
Show PHPCS results in PR:
lib/class-wp-block-templates-registry.php#L20
Equals sign not aligned with surrounding assignments; expected 1 space but found 7 spaces
|
Show PHPCS results in PR:
lib/class-wp-block-templates-registry.php#L71
Equals sign not aligned with surrounding assignments; expected 15 spaces but found 1 space
|
Show PHPCS results in PR:
lib/class-wp-block-templates-registry.php#L72
Equals sign not aligned with surrounding assignments; expected 17 spaces but found 3 spaces
|
Show PHPCS results in PR:
lib/class-wp-block-templates-registry.php#L103
Unused variable $template_name.
|
Show PHPCS results in PR:
lib/class-wp-block-templates-registry.php#L125
Missing $domain parameter in function call to __(). If this text string is supposed to use a WP Core translation, use the "default" text domain.
|
Show PHPCS results in PR:
lib/class-wp-block-templates-registry.php#L150
Missing $domain parameter in function call to __(). If this text string is supposed to use a WP Core translation, use the "default" text domain.
|
Show PHPCS results in PR:
lib/class-wp-block-templates-registry.php#L187
Not using strict comparison for in_array; supply true for $strict argument.
|
Show PHPCS results in PR:
lib/class-wp-block-templates-registry.php#L191
Not using strict comparison for in_array; supply true for $strict argument.
|
The logs for this run have expired and are no longer available.
Loading