Code Duplication    Length = 7-8 lines in 2 locations

lib/class-contextual-help.php 1 location

@@ 29-36 (lines=8) @@
26
	 *
27
	 * @return WP2D_Contextual_Help Instance of this class.
28
	 */
29
	public static function instance() {
30
		if ( ! isset( self::$_instance ) ) {
31
			self::$_instance = new self();
32
			self::$_instance->_constants();
33
			self::$_instance->_setup();
34
		}
35
		return self::$_instance;
36
	}
37
38
	/**
39
	 * Define all the required constants.

lib/class-options.php 1 location

@@ 71-77 (lines=7) @@
68
	 *
69
	 * @return WP2D_Options Instance of this class.
70
	 */
71
	public static function instance() {
72
		if ( ! isset( self::$_instance ) ) {
73
			self::$_instance = new self();
74
			self::$_instance->_setup();
75
		}
76
		return self::$_instance;
77
	}
78
79
	/**
80
	 * Set up the options menu.