Skip to content

Update: REST API logic in Optimization Detective to be encapsulated into a static class #5318

Update: REST API logic in Optimization Detective to be encapsulated into a static class

Update: REST API logic in Optimization Detective to be encapsulated into a static class #5318

Triggered via pull request February 12, 2025 05:05
Status Failure
Total duration 1m 19s
Artifacts

php-lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

5 errors
PHP: plugins/image-prioritizer/helper.php#L301
n.e.x.t This constant should not be used, instead use OD_Rest_API::get_namespace() method.
PHP: plugins/image-prioritizer/helper.php#L301
n.e.x.t This constant should not be used, instead use OD_Rest_API::get_route() method.
PHP: plugins/image-prioritizer/tests/test-helper.php#L730
n.e.x.t This constant should not be used, instead use OD_Rest_API::get_namespace() method.
PHP: plugins/image-prioritizer/tests/test-helper.php#L730
n.e.x.t This constant should not be used, instead use OD_Rest_API::get_route() method.
PHP
Process completed with exit code 1.