Fix cs #20095
Annotations
12 errors and 9 warnings
Check PHP code style against the thresholds
Process completed with exit code 2.
|
Show PHPCS results in PR:
tests/Unit/Dashboard/User_Interface/Configuration/Check_Capabilities_Test.php#L6
Type Brain\Monkey\Functions is not used in this file.
|
Show PHPCS results in PR:
tests/Unit/Dashboard/User_Interface/Configuration/Check_Capabilities_Test.php#L6
Use import statements for functions are not allowed. Found import statement for: "Brain\Monkey\Functions"
|
Show PHPCS results in PR:
tests/Unit/Dashboard/User_Interface/Configuration/Register_Routes_Test.php#L6
Type Brain\Monkey\Functions is not used in this file.
|
Show PHPCS results in PR:
tests/Unit/Dashboard/User_Interface/Configuration/Register_Routes_Test.php#L6
Use import statements for functions are not allowed. Found import statement for: "Brain\Monkey\Functions"
|
Show PHPCS results in PR:
tests/WP/Dashboard/Application/Endpoints/Endpoints_Repository_Test.php#L8
Use statements should be sorted alphabetically. The first wrong one is Yoast\WP\SEO\Dashboard\Infrastructure\Endpoints\SEO_Scores_Endpoint.
|
Show PHPCS results in PR:
tests/WP/Dashboard/Application/Endpoints/Endpoints_Repository_Test.php#L47
Array double arrow not aligned correctly; expected 13 space(s) between "'readabilityScores'" and double arrow, but found 1.
|
Show PHPCS results in PR:
tests/WP/Dashboard/Application/Endpoints/Endpoints_Repository_Test.php#L48
Array double arrow not aligned correctly; expected 21 space(s) between "'seoScores'" and double arrow, but found 9.
|
Show PHPCS results in PR:
src/integrations/admin/integrations-page.php#L48
Missing @return tag in function comment
|
Show PHPCS results in PR:
src/integrations/admin/integrations-page.php#L72
Missing @return tag in function comment
|
Show PHPCS results in PR:
src/integrations/admin/integrations-page.php#L81
@param annotation of method \Yoast\WP\SEO\Integrations\Admin\Integrations_Page::add_submenu_page() does not specify type hint for items of its traversable parameter $submenu_pages.
|
Check PHP code style for the changes made in the branch only
Process completed with exit code 2.
|
Show PHPCS results in PR:
wp-seo-main.php#L183
Use of a direct database call is discouraged.
|
Show PHPCS results in PR:
wp-seo-main.php#L183
Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().
|
Show PHPCS results in PR:
wp-seo-main.php#L583
Processing form data without nonce verification.
|
Show PHPCS results in PR:
inc/options/class-wpseo-option-wpseo.php#L629
Unused function parameter $current_version.
|
Show PHPCS results in PR:
inc/options/class-wpseo-option-wpseo.php#L629
Unused function parameter $all_old_option_values.
|
Show PHPCS results in PR:
inc/class-wpseo-replace-vars.php#L107
trigger_error() found. Debug code should not normally be used in production.
|
Show PHPCS results in PR:
inc/class-wpseo-replace-vars.php#L110
trigger_error() found. Debug code should not normally be used in production.
|
Show PHPCS results in PR:
inc/class-wpseo-replace-vars.php#L120
trigger_error() found. Debug code should not normally be used in production.
|
Show PHPCS results in PR:
inc/class-wpseo-replace-vars.php#L124
trigger_error() found. Debug code should not normally be used in production.
|
Loading