Skip to content

dev: implement PSR-4 and reduce Singleton usage #12

dev: implement PSR-4 and reduce Singleton usage

dev: implement PSR-4 and reduce Singleton usage #12

Triggered via pull request November 27, 2025 21:59
@justlevinejustlevine
synchronize #29
dev/psr-4
Status Failure
Total duration 2m 37s
Artifacts 1

test.yml

on: pull_request
Lint JS and CSS
36s
Lint JS and CSS
Run PHPCS coding standards checks
18s
Run PHPCS coding standards checks
Run PHP static analysis
28s
Run PHP static analysis
Matrix: phpunit
Fit to window
Zoom out
Zoom in

Annotations

22 errors and 10 warnings
Run PHPCS coding standards checks: inc/Modules/Core/Assets.php#L12
Group use declaration is disallowed, use single use for every import.
Run PHPCS coding standards checks: inc/Modules/Rest/Basic_Options_Controller.php#L10
Group use declaration is disallowed, use single use for every import.
Run PHPCS coding standards checks: inc/Hooks.php#L12
Group use declaration is disallowed, use single use for every import.
Run PHPCS coding standards checks: inc/Modules/Post_Types/Pattern.php#L27
Constant \OneDesign\Modules\Post_Types\Pattern::LABEL visibility missing.
Run PHPCS coding standards checks: inc/Modules/Post_Types/Pattern.php#L20
Constant \OneDesign\Modules\Post_Types\Pattern::SLUG visibility missing.
Run PHPCS coding standards checks: inc/Modules/Settings/Admin.php#L25
Constant \OneDesign\Modules\Settings\Admin::PAGE_SLUG visibility missing.
Run PHPCS coding standards checks: inc/Modules/Settings/Admin.php#L12
Group use declaration is disallowed, use single use for every import.
Run PHPCS coding standards checks: onedesign.php#L58
load_plugin_textdomain() has been discouraged since WordPress version 4.6.
Run PHPCS coding standards checks: inc/Modules/Post_Types/Template.php#L27
Constant \OneDesign\Modules\Post_Types\Template::LABEL visibility missing.
Run PHPCS coding standards checks: inc/Modules/Post_Types/Template.php#L20
Constant \OneDesign\Modules\Post_Types\Template::SLUG visibility missing.
Run PHPCS coding standards checks
Process completed with exit code 1.
Run PHP static analysis: inc/Hooks.php#L53
Method OneDesign\Hooks::add_setup_page_link() has parameter $links with no value type specified in iterable type array.
Run PHP static analysis: inc/CPT_Restriction.php#L290
Access to an undefined property object::$post_type.
Run PHP static analysis: inc/CPT_Restriction.php#L205
Method OneDesign\CPT_Restriction::modify_pattern_library_labels() return type has no value type specified in iterable type array.
Run PHP static analysis: inc/CPT_Restriction.php#L205
Method OneDesign\CPT_Restriction::modify_pattern_library_labels() has parameter $args with no value type specified in iterable type array.
Run PHP static analysis: inc/CPT_Restriction.php#L62
Method OneDesign\CPT_Restriction::restrict_cpt() return type has no value type specified in iterable type array.
Run PHP static analysis: inc/CPT_Restriction.php#L62
Method OneDesign\CPT_Restriction::restrict_cpt() has parameter $args with no value type specified in iterable type array.
Run PHP static analysis: inc/CPT_Restriction.php#L36
Callback expects 1 parameter, $accepted_args is set to 2.
Run PHP static analysis: custom-functions.php#L68
Cannot access property $post_types on array.
Run PHP static analysis: custom-functions.php#L23
Function onedesign_parse_block_template() return type has no value type specified in iterable type array.
Run PHP static analysis: custom-functions.php#L23
Function onedesign_parse_block_template() has parameter $already_tracked with no value type specified in iterable type array.
Lint JS and CSS
Process completed with exit code 2.
Run PHPCS coding standards checks: inc/Modules/Multisite/Multisite.php#L189
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/Multisite.php#L140
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/Multisite.php#L109
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/CPT_Restriction.php#L263
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/CPT_Restriction.php#L181
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/CPT_Restriction.php#L138
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/Core/Assets.php#L210
File inclusion using variable (`$asset_meta_file`). Probably needs manual inspection.
Run PHPCS coding standards checks: inc/Hooks.php#L211
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/Settings/Admin.php#L189
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/Settings/Admin.php#L106
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/.

Artifacts

Produced during runtime
Name Size Digest
wp-code-coverage-8.4-latest Expired
406 KB
sha256:4b17100da99ba25a8cde53543d38a39e4f0e6e80c95f6e0d1f16dd002b31d4ca