Add plugin template registration API #104007
Annotations
11 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/class-wp-block-templates-registry.php#L11
There should be a comma after the last array item in a multi-line array.
|
Show PHPCS results in PR:
lib/class-wp-block-templates-registry.php#L75
Array keys must NOT be surrounded by spaces if they only contain a string or an integer.
|
Show PHPCS results in PR:
lib/class-wp-block-templates-registry.php#L77
Array keys must NOT be surrounded by spaces if they only contain a string or an integer.
|
Show PHPCS results in PR:
lib/class-wp-block-templates-registry.php#L88
Use Yoda Condition checks, you must.
|
Show PHPCS results in PR:
lib/class-wp-block-templates-registry.php#L103
Space after opening control structure is required
|
Show PHPCS results in PR:
lib/class-wp-block-templates-registry.php#L103
No space before opening parenthesis is prohibited
|
Show PHPCS results in PR:
lib/class-wp-block-templates-registry.php#L103
Expected 1 space after FOREACH keyword; 0 found
|
Show PHPCS results in PR:
lib/class-wp-block-templates-registry.php#L186
Space after opening control structure is required
|
Show PHPCS results in PR:
lib/class-wp-block-templates-registry.php#L186
No space before opening parenthesis is prohibited
|
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#L13
Equals sign not aligned with surrounding assignments; expected 12 spaces but found 1 space
|
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#L26
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#L35
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#L44
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#L54
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#L64
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#L71
Equals sign not aligned with surrounding assignments; expected 15 spaces but found 1 space
|
The logs for this run have expired and are no longer available.
Loading