Passed
Push — 567-fix/refactor-system-info-w... ( 1d64a1 )
by
unknown
11:45
created

BulkDeleteSystemInfo::print_bulk_delete_details()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 5
nc 1
nop 0
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace BulkWP\BulkDelete\Core\SystemInfo;
4
5
use Sudar\WPSystemInfo\SystemInfo;
6
7
defined( 'ABSPATH' ) || exit; // Exit if accessed directly.
8
9
/**
10
 * Email Log System Info.
11
 *
12
 * Uses the WPSystemInfo library.
13
 *
14
 * @since 2.3.0
15
 * @link https://github.com/sudar/wp-system-info
16
 */
17
class BulkDeleteSystemInfo extends SystemInfo {
18
19
	/**
20
	 * Setup hooks and filters.
21
	 */
22
	public function load() {
23
		add_action( 'before_system_info_for_bulk-delete', array( $this, 'print_bulk_delete_details' ) );
24
	}
25
26
	/**
27
	 * Print details about Bulk Delete.
28
	 *
29
	 * PHPCS is disabled for this function since alignment will mess up the system info output.
30
	 * phpcs:disable
31
	 */
32
	public function print_bulk_delete_details() {
33
	?>
34
-- Bulk Delete Configuration --
35
Bulk Delete Version: <?php echo Bulk_Delete::VERSION . "\n"; ?>
0 ignored issues
show
Bug introduced by
The type BulkWP\BulkDelete\Core\SystemInfo\Bulk_Delete was not found. Did you mean Bulk_Delete? If so, make sure to prefix the type with \.
Loading history...
36
37
<?php
38
	}
39
	// phpcs:enable
40
41
	/**
42
	 * Change the default config.
43
	 *
44
	 * @return array Modified config.
45
	 */
46
	protected function get_default_config() {
47
		$config = parent::get_default_config();
48
49
		$config['show_posts']      = false;
50
		$config['show_taxonomies'] = false;
51
		$config['show_users']      = false;
52
53
		return $config;
54
	}
55
}
56