Passed
Push — 252-fix/delete-post-revision-t... ( 2d4c2c...2c79ef )
by Sudar
08:04 queued 03:02
created

DeletePostsByDuplicateTitleModule::render()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace BulkWP\BulkDelete\Deprecated\Addons;
4
5
defined( 'ABSPATH' ) || exit; // Exit if accessed directly.
6
7
/**
8
 * Adds backward compatibility for Bulk Delete Posts By Duplicate Title add-on v0.7 or below.
9
 *
10
 * This module will eventually be removed once the add-on is updated.
11
 *
12
 * @since 6.0.0
13
 */
14
class DeletePostsByDuplicateTitleModule extends DeprecatedModule {
15
16
	protected function initialize() {
17
		$this->addon_class_name = 'Bulk_Delete_Posts_By_Duplicate_Title';
18
		$this->addon_slug       = 'bulk-delete-posts-by-duplicate-title';
19
20
		$this->item_type     = 'posts';
21
		$this->field_slug    = '';
22
		$this->meta_box_slug = 'bd_by_duplicate_title';
23
		$this->action        = 'delete_posts_by_duplicate_title';
24
		$this->cron_hook     = '';
25
		$this->scheduler_url = '';
26
		$this->messages      = array(
27
			'box_label'  => __( 'Delete Posts By Duplicate Title', 'bulk-delete' ),
28
			'scheduled'  => '',
29
			'cron_label' => '',
30
		);
31
	}
32
33
	/**
34
	 * Call the render method of the add-on.
35
	 */
36
	public function render() {
37
		\Bulk_Delete_Posts_By_Duplicate_Title::render_delete_posts_by_duplicate_title_box();
0 ignored issues
show
Bug introduced by
The type Bulk_Delete_Posts_By_Duplicate_Title was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
38
	}
39
}
40