Implemented the get_name method #18203
Annotations
12 errors and 10 warnings
Check code style
Process completed with exit code 2.
|
Check code style:
src/helpers/import-cursor-helper.php#L32
Usage of "mixed" type hint is disallowed.
|
Check code style:
src/helpers/import-cursor-helper.php#L46
Expected 9 spaces after parameter name; 8 found
|
Check code style:
src/helpers/import-cursor-helper.php#L48
Expected 7 spaces after parameter name; 6 found
|
Check code style:
src/helpers/import-cursor-helper.php#L52
Expected 1 spaces after opening parenthesis; 0 found
|
Check code style:
src/indexables/domain/actions/migration-interface.php#L8
Expected 1 space after interface name; 2 found
|
Check code style:
src/indexables/domain/actions/migration-interface.php#L8
Expected 1 space before opening brace; found 2
|
Check code style:
src/indexables/domain/actions/migration-interface.php#L10
Missing doc comment for function migrate()
|
Check code style:
src/indexables/domain/actions/migration-interface.php#L10
Method \Yoast\WP\SEO\Indexables\Domain\Actions\Migration_Interface::migrate() does not have parameter type hint nor @param annotation for its parameter $old_url.
|
Check code style:
src/indexables/domain/actions/migration-interface.php#L10
Method \Yoast\WP\SEO\Indexables\Domain\Actions\Migration_Interface::migrate() does not have parameter type hint nor @param annotation for its parameter $new_url.
|
Check code style:
src/indexables/domain/actions/migration-interface.php#L12
Missing doc comment for function get_limit()
|
Check code style
Process completed with exit code 2.
|
Check code style:
src/indexables/domain/actions/migration-interface.php#L3
A namespace name should be no more than 2 levels deep (excluding the prefix). Level depth found: 3 in Yoast\WP\SEO\Indexables\Domain\Actions
|
Check code style:
src/indexables/user-interface/command/migrate-command.php#L3
A namespace name should be no more than 2 levels deep (excluding the prefix). Level depth found: 3 in Yoast\WP\SEO\Indexables\User_Interface\Command
|
Check code style:
src/indexables/application/actions/migration/link-action.php#L60
Use of a direct database call is discouraged.
|
Check code style:
src/indexables/application/actions/migration/link-action.php#L60
Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().
|
Check code style:
src/indexables/application/actions/migration/link-action.php#L129
Incorrect number of replacements passed to $wpdb->prepare(). Found 1 replacement parameters, expected 4.
|
Check code style:
src/indexables/application/actions/migration/link-action.php#L134
Use of a direct database call is discouraged.
|
Check code style:
src/indexables/application/actions/migration/link-action.php#L134
Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().
|
Check code style:
src/indexables/application/actions/migration/indexable-action.php#L76
Use of a direct database call is discouraged.
|
Check code style:
src/indexables/application/actions/migration/indexable-action.php#L76
Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().
|
Check code style:
src/indexables/application/actions/migration/indexable-action.php#L149
Use of a direct database call is discouraged.
|