Code Duplication    Length = 32-32 lines in 3 locations

src/wordlift/images-licenses/tasks/class-add-license-caption-or-remove-page.php 1 location

@@ 8-39 (lines=32) @@
5
use Wordlift\Tasks\Admin\Tasks_Page_Base;
6
use Wordlift\Tasks\Task_Ajax_Adapters_Registry;
7
8
class Add_License_Caption_Or_Remove_Page extends Tasks_Page_Base {
9
10
	/**
11
	 * The ID of this admin page.
12
	 *
13
	 * @since    1.0.0
14
	 * @access   private
15
	 * @var      string $menu_slug The ID of this page.
16
	 */
17
	private $menu_slug = 'wl_images_licenses__add_license_caption_or_remove';
18
19
	/**
20
	 * Define the {@link Wordlift_Admin_Page} constructor.
21
	 *
22
	 * @param Task_Ajax_Adapters_Registry $task_ajax_adapters_registry
23
	 * @param string $version
24
	 *
25
	 * @since 1.0.0
26
	 */
27
	public function __construct( $task_ajax_adapters_registry, $version ) {
28
		parent::__construct(
29
			$task_ajax_adapters_registry,
30
			$version,
31
			$this->menu_slug,
32
			__( 'License Compliance', 'wordlift-framework' ),
33
			'manage_options',
34
			null,
35
			__( 'License Compliance', 'wordlift-framework' )
36
		);
37
	}
38
39
}
40

src/wordlift/images-licenses/tasks/class-reload-data-page.php 1 location

@@ 18-49 (lines=32) @@
15
use Wordlift\Tasks\Admin\Tasks_Page_Base;
16
use Wordlift\Tasks\Task_Ajax_Adapters_Registry;
17
18
class Reload_Data_Page extends Tasks_Page_Base {
19
20
	/**
21
	 * The ID of this admin page.
22
	 *
23
	 * @since    1.0.0
24
	 * @access   private
25
	 * @var      string $menu_slug The ID of this page.
26
	 */
27
	private $menu_slug = 'wl_images_licenses__reload_data';
28
29
	/**
30
	 * Define the {@link Wordlift_Admin_Page} constructor.
31
	 *
32
	 * @param Task_Ajax_Adapters_Registry $task_ajax_adapters_registry
33
	 * @param string $version
34
	 *
35
	 * @since 1.0.0
36
	 */
37
	public function __construct( $task_ajax_adapters_registry, $version ) {
38
		parent::__construct(
39
			$task_ajax_adapters_registry,
40
			$version,
41
			$this->menu_slug,
42
			__( 'License Compliance', 'wordlift-framework' ),
43
			'manage_options',
44
			null,
45
			__( 'License Compliance', 'wordlift-framework' )
46
		);
47
	}
48
49
}
50

src/wordlift/images-licenses/tasks/class-remove-all-images-page.php 1 location

@@ 18-49 (lines=32) @@
15
use Wordlift\Tasks\Admin\Tasks_Page_Base;
16
use Wordlift\Tasks\Task_Ajax_Adapters_Registry;
17
18
class Remove_All_Images_Page extends Tasks_Page_Base {
19
20
	/**
21
	 * The ID of this admin page.
22
	 *
23
	 * @since    1.0.0
24
	 * @access   private
25
	 * @var      string $menu_slug The ID of this page.
26
	 */
27
	private $menu_slug = 'wl_images_licenses__remove_all_images';
28
29
	/**
30
	 * Define the {@link Wordlift_Admin_Page} constructor.
31
	 *
32
	 * @param Task_Ajax_Adapters_Registry $task_ajax_adapters_registry
33
	 * @param string $version
34
	 *
35
	 * @since 1.0.0
36
	 */
37
	public function __construct( $task_ajax_adapters_registry, $version ) {
38
		parent::__construct(
39
			$task_ajax_adapters_registry,
40
			$version,
41
			$this->menu_slug,
42
			__( 'License Compliance', 'wordlift-framework' ),
43
			'manage_options',
44
			null,
45
			__( 'License Compliance', 'wordlift-framework' )
46
		);
47
	}
48
49
}
50