Fix: QA issue after code refactoring #26
test.yml
on: pull_request
Lint JS and CSS
41s
Run PHPCS coding standards checks
18s
Run PHP static analysis
31s
Matrix: phpunit
Annotations
17 errors and 10 warnings
|
Run PHPCS coding standards checks
Process completed with exit code 1.
|
|
Run PHPCS coding standards checks:
inc/Modules/Rest/Templates_Controller.php#L749
Detected high remote request timeout. `timeout` is set to `15`.
|
|
Run PHPCS coding standards checks:
inc/Modules/Rest/Patterns_Controller.php#L643
Detected high remote request timeout. `timeout` is set to `45`.
|
|
Run PHPCS coding standards checks:
inc/Modules/Rest/Patterns_Controller.php#L367
Detected high remote request timeout. `timeout` is set to `45`.
|
|
Run PHPCS coding standards checks:
inc/Modules/Rest/Patterns_Controller.php#L256
Detected high remote request timeout. `timeout` is set to `45`.
|
|
Run PHPCS coding standards checks
Process completed with exit code 1.
|
|
Run PHP static analysis:
inc/Modules/Rest/Templates_Controller.php#L707
Variable $new_patterns might not be defined.
|
|
Run PHP static analysis:
inc/Modules/Rest/Templates_Controller.php#L706
Variable $new_template_parts might not be defined.
|
|
Run PHP static analysis:
inc/Modules/Rest/Templates_Controller.php#L674
Parameter #2 $args of function wp_safe_remote_post expects array{method?: string, timeout?: float, redirection?: int, httpversion?: string, user-agent?: string, reject_unsafe_urls?: bool, blocking?: bool, headers?: array|string, ...}, array{headers: array{X-OneDesign-Token: string, Content-Type: 'application/json'}, body: non-empty-string|false} given.
|
|
Run PHP static analysis:
inc/Modules/Rest/Templates_Controller.php#L644
Parameter #2 $args of function wp_safe_remote_post expects array{method?: string, timeout?: float, redirection?: int, httpversion?: string, user-agent?: string, reject_unsafe_urls?: bool, blocking?: bool, headers?: array|string, ...}, array{headers: array{X-OneDesign-Token: string, Content-Type: 'application/json'}, body: non-empty-string|false} given.
|
|
Run PHP static analysis:
inc/Modules/Rest/Templates_Controller.php#L454
Parameter #2 $args of function wp_safe_remote_request expects array{method?: string, timeout?: float, redirection?: int, httpversion?: string, user-agent?: string, reject_unsafe_urls?: bool, blocking?: bool, headers?: array|string, ...}, array{headers: array{X-OneDesign-Token: mixed, Content-Type: 'application/json'}, method: 'DELETE', body: non-empty-string|false} given.
|
|
Run PHP static analysis:
inc/Modules/Rest/Patterns_Controller.php#L631
Parameter #2 $args of function wp_safe_remote_post expects array{method?: string, timeout?: float, redirection?: int, httpversion?: string, user-agent?: string, reject_unsafe_urls?: bool, blocking?: bool, headers?: array|string, ...}, array{method: 'POST', headers: array{X-OneDesign-Token: non-falsy-string, Content-Type: 'application/json'}, body: non-empty-string|false, timeout: 45} given.
|
|
Run PHP static analysis:
inc/Modules/Rest/Patterns_Controller.php#L245
Parameter #2 $args of function wp_safe_remote_request expects array{method?: string, timeout?: float, redirection?: int, httpversion?: string, user-agent?: string, reject_unsafe_urls?: bool, blocking?: bool, headers?: array|string, ...}, array{method: 'DELETE', headers: array{X-OneDesign-Token: non-falsy-string, Content-Type: 'application/json'}, body: non-empty-string|false, timeout: 45} given.
|
|
Run PHP static analysis:
inc/Modules/Rest/Patterns_Controller.php#L241
Variable $site might not be defined.
|
|
Run PHP static analysis:
inc/Modules/Post_Types/CPT_Restriction.php#L285
Access to an undefined property object::$post_type.
|
|
Run PHP static analysis:
inc/Modules/Multisite/Settings.php#L221
Strict comparison using === between 'site_icon' and 'site_icon' will always evaluate to true.
|
|
Lint JS and CSS
Process completed with exit code 2.
|
|
Run PHPCS coding standards checks:
inc/Modules/Rest/Patterns_Controller.php#L752
get_posts() is uncached unless the "suppress_filters" parameter is set to false. If the suppress_filter parameter is set to false this can be safely ignored. More Info: https://docs.wpvip.com/technical-references/caching/uncached-functions/.
|
|
Run PHPCS coding standards checks:
inc/Modules/Post_Types/Admin.php#L450
get_posts() is uncached unless the "suppress_filters" parameter is set to false. If the suppress_filter parameter is set to false this can be safely ignored. More Info: https://docs.wpvip.com/technical-references/caching/uncached-functions/.
|
|
Run PHPCS coding standards checks:
inc/Modules/Post_Types/Admin.php#L392
get_posts() is uncached unless the "suppress_filters" parameter is set to false. If the suppress_filter parameter is set to false this can be safely ignored. More Info: https://docs.wpvip.com/technical-references/caching/uncached-functions/.
|
|
Run PHPCS coding standards checks:
inc/Modules/Post_Types/Admin.php#L150
get_posts() is uncached unless the "suppress_filters" parameter is set to false. If the suppress_filter parameter is set to false this can be safely ignored. More Info: https://docs.wpvip.com/technical-references/caching/uncached-functions/.
|
|
Run PHPCS coding standards checks:
inc/Modules/Post_Types/CPT_Restriction.php#L258
get_posts() is uncached unless the "suppress_filters" parameter is set to false. If the suppress_filter parameter is set to false this can be safely ignored. More Info: https://docs.wpvip.com/technical-references/caching/uncached-functions/.
|
|
Run PHPCS coding standards checks:
inc/Modules/Post_Types/CPT_Restriction.php#L176
get_posts() is uncached unless the "suppress_filters" parameter is set to false. If the suppress_filter parameter is set to false this can be safely ignored. More Info: https://docs.wpvip.com/technical-references/caching/uncached-functions/.
|
|
Run PHPCS coding standards checks:
inc/Modules/Post_Types/CPT_Restriction.php#L133
get_posts() is uncached unless the "suppress_filters" parameter is set to false. If the suppress_filter parameter is set to false this can be safely ignored. More Info: https://docs.wpvip.com/technical-references/caching/uncached-functions/.
|
|
Run PHPCS coding standards checks:
inc/Modules/Multisite/Settings.php#L205
switch_to_blog() may not work as expected since it only changes the database context for the blog and does not load the plugins or theme of that site. Filters or hooks on the blog you are switching to will not run.
|
|
Run PHPCS coding standards checks:
inc/Modules/Multisite/Settings.php#L156
switch_to_blog() may not work as expected since it only changes the database context for the blog and does not load the plugins or theme of that site. Filters or hooks on the blog you are switching to will not run.
|
|
Run PHPCS coding standards checks:
inc/Modules/Multisite/Settings.php#L125
switch_to_blog() may not work as expected since it only changes the database context for the blog and does not load the plugins or theme of that site. Filters or hooks on the blog you are switching to will not run.
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
wp-code-coverage-8.4-latest
Expired
|
419 KB |
sha256:426137f7751c266c80e79b699e012fd6d2bfac27231e24b33bd4297fa5369c64
|
|