Skip to content

Add plugin template registration API #104017

Add plugin template registration API

Add plugin template registration API #104017

Triggered via pull request May 10, 2024 16:15
Status Failure
Total duration 7m 33s
Artifacts 1

unit-test.yml

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

Annotations

41 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#L9
Assignments must be the first block of code on a line
PHP coding standards: lib/class-wp-block-templates-registry.php#L13
Assignments must be the first block of code on a line
PHP coding standards: lib/class-wp-block-templates-registry.php#L15
The "register()" function should be guarded against redeclaration.
PHP coding standards: lib/class-wp-block-templates-registry.php#L21
Functions must not contain multiple empty lines in a row; found 2 empty lines
PHP coding standards: lib/class-wp-block-templates-registry.php#L23
Line indented incorrectly; expected 3 tabs, found 2
PHP coding standards: lib/class-wp-block-templates-registry.php#L24
Line indented incorrectly; expected at least 4 tabs, found 3
PHP coding standards: lib/class-wp-block-templates-registry.php#L28
Line indented incorrectly; expected at least 5 tabs, found 3
PHP coding standards: lib/class-wp-block-templates-registry.php#L29
Line indented incorrectly; expected at least 5 tabs, found 3
PHP coding standards: lib/class-wp-block-templates-registry.php#L30
Line indented incorrectly; expected 3 tabs, found 2
PHP 8.0 multisite on ubuntu-latest
Process completed with exit code 255.
PHP 7.2 multisite on ubuntu-latest
The job was canceled because "_8_0_true" failed.
PHP 7.2 multisite on ubuntu-latest
Process completed with exit code 255.
PHP 8.1 on ubuntu-latest
The job was canceled because "_8_0_true" failed.
PHP 8.1 on ubuntu-latest
Process completed with exit code 255.
PHP 7.4 multisite on ubuntu-latest
The job was canceled because "_8_0_true" failed.
PHP 7.4 multisite on ubuntu-latest
The operation was canceled.
PHP 8.1 multisite on ubuntu-latest
The job was canceled because "_8_0_true" failed.
PHP 8.1 multisite on ubuntu-latest
The operation was canceled.
PHP 7.3 on ubuntu-latest
The job was canceled because "_8_0_true" failed.
PHP 7.3 on ubuntu-latest
The operation was canceled.
PHP 8.2 multisite on ubuntu-latest
The job was canceled because "_8_0_true" failed.
PHP 8.2 multisite on ubuntu-latest
The operation was canceled.
PHP 7.4 on ubuntu-latest
The job was canceled because "_8_0_true" failed.
PHP 7.4 on ubuntu-latest
The operation was canceled.
PHP 7.2 (WP 6.4.4) on ubuntu-latest
The job was canceled because "_8_0_true" failed.
PHP 7.2 (WP 6.4.4) on ubuntu-latest
The operation was canceled.
PHP 7.3 multisite on ubuntu-latest
The job was canceled because "_8_0_true" failed.
PHP 7.3 multisite on ubuntu-latest
The operation was canceled.
PHP 7.2 on ubuntu-latest
The job was canceled because "_8_0_true" failed.
PHP 7.2 on ubuntu-latest
The operation was canceled.
PHP 8.0 on ubuntu-latest
The job was canceled because "_8_0_true" failed.
PHP 8.0 on ubuntu-latest
The operation was canceled.
PHP 8.2 on ubuntu-latest
The job was canceled because "_8_0_true" failed.
PHP 8.2 on ubuntu-latest
The operation was canceled.
PHP 8.2 (WP 6.4.4) on ubuntu-latest
The job was canceled because "_8_0_true" failed.
PHP 8.2 (WP 6.4.4) on ubuntu-latest
The operation was canceled.
PHP 7.4 (WP 6.4.4) on ubuntu-latest
The job was canceled because "_8_0_true" failed.
PHP 7.4 (WP 6.4.4) on ubuntu-latest
The operation was canceled.
PHP
Process completed with exit code 1.
PHP coding standards: lib/class-wp-block-templates-registry.php#L8
Possible parse error: class WP_Block_Templates_Registry missing opening or closing brace
PHP coding standards: lib/class-wp-block-templates-registry.php#L8
Possible parse error: class missing opening or closing brace
PHP coding standards: lib/class-wp-block-templates-registry.php#L60
Variable $this is undefined.
PHP coding standards: lib/class-wp-block-templates-registry.php#L91
Variable $this is undefined.
PHP coding standards: lib/class-wp-block-templates-registry.php#L97
Variable $this is undefined.
PHP coding standards: lib/class-wp-block-templates-registry.php#L131
Variable $this is undefined.
PHP coding standards: lib/class-wp-block-templates-registry.php#L135
Variable $this is undefined.
PHP coding standards: lib/class-wp-block-templates-registry.php#L156
Variable $this is undefined.
PHP coding standards: lib/class-wp-block-templates-registry.php#L175
Variable $this is undefined.
PHP coding standards: lib/class-wp-block-templates-registry.php#L229
Unused function parameter $template_name.
JavaScript Date Tests (Node.js 20)
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript Date Tests (Node.js 21)
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 20) 4/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) 2/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) 1/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 21) 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