Skip to content

Add plugin template registration API #104006

Add plugin template registration API

Add plugin template registration API #104006

Triggered via pull request May 10, 2024 15:24
Status Cancelled
Total duration 6m 19s
Artifacts 1

unit-test.yml

on: pull_request
Compute previous WordPress version
3s
Compute previous WordPress version
Build JavaScript assets for PHP unit tests
5m 7s
Build JavaScript assets for PHP unit tests
PHP coding standards
28s
PHP coding standards
Matrix: unit-js-date
Matrix: unit-js
Matrix: test-php
Fit to window
Zoom out
Zoom in

Annotations

28 errors and 20 warnings
PHP coding standards
Process completed with exit code 2.
PHP coding standards: lib/class-wp-block-templates-registry.php#L8
The "WP_Block_Templates_Registry" class should be guarded against redeclaration.
PHP coding standards: lib/class-wp-block-templates-registry.php#L11
There should be a comma after the last array item in a multi-line array.
PHP coding standards: 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.
PHP coding standards: 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.
PHP coding standards: lib/class-wp-block-templates-registry.php#L88
Use Yoda Condition checks, you must.
PHP coding standards: lib/class-wp-block-templates-registry.php#L103
Space after opening control structure is required
PHP coding standards: lib/class-wp-block-templates-registry.php#L103
No space before opening parenthesis is prohibited
PHP coding standards: lib/class-wp-block-templates-registry.php#L103
Expected 1 space after FOREACH keyword; 0 found
PHP coding standards: lib/class-wp-block-templates-registry.php#L186
Space after opening control structure is required
PHP coding standards: lib/class-wp-block-templates-registry.php#L186
No space before opening parenthesis is prohibited
PHP 7.2 (WP 6.4.4) on ubuntu-latest
Canceling since a higher priority waiting request for 'Unit Tests-add/plugin-template-registration-api' exists
PHP 8.0 on ubuntu-latest
Canceling since a higher priority waiting request for 'Unit Tests-add/plugin-template-registration-api' exists
PHP 7.4 multisite on ubuntu-latest
Canceling since a higher priority waiting request for 'Unit Tests-add/plugin-template-registration-api' exists
PHP 7.2 multisite on ubuntu-latest
Canceling since a higher priority waiting request for 'Unit Tests-add/plugin-template-registration-api' exists
PHP 7.3 multisite on ubuntu-latest
Canceling since a higher priority waiting request for 'Unit Tests-add/plugin-template-registration-api' exists
PHP 7.3 multisite on ubuntu-latest
The operation was canceled.
PHP 7.4 on ubuntu-latest
Canceling since a higher priority waiting request for 'Unit Tests-add/plugin-template-registration-api' exists
PHP 8.2 multisite on ubuntu-latest
Canceling since a higher priority waiting request for 'Unit Tests-add/plugin-template-registration-api' exists
PHP 8.1 multisite on ubuntu-latest
Canceling since a higher priority waiting request for 'Unit Tests-add/plugin-template-registration-api' exists
PHP 8.2 on ubuntu-latest
Canceling since a higher priority waiting request for 'Unit Tests-add/plugin-template-registration-api' exists
PHP 7.3 on ubuntu-latest
Canceling since a higher priority waiting request for 'Unit Tests-add/plugin-template-registration-api' exists
PHP 8.2 (WP 6.4.4) on ubuntu-latest
Canceling since a higher priority waiting request for 'Unit Tests-add/plugin-template-registration-api' exists
PHP 7.2 on ubuntu-latest
Canceling since a higher priority waiting request for 'Unit Tests-add/plugin-template-registration-api' exists
PHP 7.4 (WP 6.4.4) on ubuntu-latest
Canceling since a higher priority waiting request for 'Unit Tests-add/plugin-template-registration-api' exists
PHP 8.1 on ubuntu-latest
Canceling since a higher priority waiting request for 'Unit Tests-add/plugin-template-registration-api' exists
PHP 8.0 multisite on ubuntu-latest
Canceling since a higher priority waiting request for 'Unit Tests-add/plugin-template-registration-api' exists
PHP
Process completed with exit code 1.
PHP coding standards: 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.
PHP coding standards: lib/class-wp-block-templates-registry.php#L13
Equals sign not aligned with surrounding assignments; expected 12 spaces but found 1 space
PHP coding standards: lib/class-wp-block-templates-registry.php#L19
Equals sign not aligned with surrounding assignments; expected 6 spaces but found 1 space
PHP coding standards: lib/class-wp-block-templates-registry.php#L20
Equals sign not aligned with surrounding assignments; expected 1 space but found 7 spaces
PHP coding standards: 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.
PHP coding standards: 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.
PHP coding standards: 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.
PHP coding standards: 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.
PHP coding standards: 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.
PHP coding standards: lib/class-wp-block-templates-registry.php#L71
Equals sign not aligned with surrounding assignments; expected 15 spaces but found 1 space
JavaScript Date Tests (Node.js 21)
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript Date Tests (Node.js 20)
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 21) 3/4
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 21) 2/4
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 21) 4/4
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 20) 4/4
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 20) 3/4
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 20) 2/4
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 21) 1/4
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 20) 1/4
Both node-version and node-version-file inputs are specified, only node-version will be used

Artifacts

Produced during runtime
Name Size
build-assets Expired
9.56 MB