DeletePostsByDuplicateTitleModule   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 14
c 0
b 0
f 0
dl 0
loc 23
ccs 0
cts 17
cp 0
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A render() 0 2 1
A initialize() 0 14 1
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
	protected function initialize() {
16
		$this->addon_class_name = 'Bulk_Delete_Posts_By_Duplicate_Title';
17
		$this->addon_slug       = 'bulk-delete-posts-by-duplicate-title';
18
19
		$this->item_type     = 'posts';
20
		$this->field_slug    = '';
21
		$this->meta_box_slug = 'bd_by_duplicate_title';
22
		$this->action        = 'delete_posts_by_duplicate_title';
23
		$this->cron_hook     = '';
24
		$this->scheduler_url = '';
25
		$this->messages      = array(
26
			'box_label'  => __( 'Delete Posts By Duplicate Title', 'bulk-delete' ),
27
			'scheduled'  => '',
28
			'cron_label' => '',
29
		);
30
	}
31
32
	/**
33
	 * Call the render method of the add-on.
34
	 */
35
	public function render() {
36
		\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...
37
	}
38
}
39