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

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