Simplify and prevent warnings #17902
Annotations
12 errors and 3 warnings
Check PHP code style against the thresholds
Process completed with exit code 2.
|
Show PHPCS results in PR:
src/generators/schema/howto.php#L24
@return annotation of method \Yoast\WP\SEO\Generators\Schema\HowTo::generate() does not specify type hint for items of its traversable return value.
|
Show PHPCS results in PR:
src/generators/schema/howto.php#L39
@param annotation of method \Yoast\WP\SEO\Generators\Schema\HowTo::add_duration() does not specify type hint for items of its traversable parameter $data.
|
Show PHPCS results in PR:
src/generators/schema/howto.php#L40
@param annotation of method \Yoast\WP\SEO\Generators\Schema\HowTo::add_duration() does not specify type hint for items of its traversable parameter $attributes.
|
Show PHPCS results in PR:
src/generators/schema/howto.php#L49
Operation must be bracketed
|
Show PHPCS results in PR:
src/generators/schema/howto.php#L50
Operation must be bracketed
|
Show PHPCS results in PR:
src/generators/schema/howto.php#L51
Operation must be bracketed
|
Show PHPCS results in PR:
src/generators/schema/howto.php#L61
@param annotation of method \Yoast\WP\SEO\Generators\Schema\HowTo::add_steps() does not specify type hint for items of its traversable parameter $data.
|
Show PHPCS results in PR:
src/generators/schema/howto.php#L62
@param annotation of method \Yoast\WP\SEO\Generators\Schema\HowTo::add_steps() does not specify type hint for items of its traversable parameter $steps.
|
Show PHPCS results in PR:
src/generators/schema/howto.php#L118
@param annotation of method \Yoast\WP\SEO\Generators\Schema\HowTo::add_step_description() does not specify type hint for items of its traversable parameter $schema_step.
|
Show PHPCS results in PR:
src/generators/schema/howto.php#L135
@param annotation of method \Yoast\WP\SEO\Generators\Schema\HowTo::add_step_image() does not specify type hint for items of its traversable parameter $schema_step.
|
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#L589
Processing form data without nonce verification.
|
Loading