Code Duplication    Length = 8-8 lines in 2 locations

class.vartype.php 1 location

@@ 146-153 (lines=8) @@
143
	 *
144
	 * @return string
145
	 */
146
	function get_tab_title( $tab ) {
147
		if ( isset( $this->test_groups[ $tab ]['title'] ) && is_string( $this->test_groups[ $tab ]['title'] ) && $this->test_groups[ $tab ]['title'] !== '' ) {
148
			return $this->test_groups[ $tab ]['title'];
149
		}
150
		else {
151
			return '';
152
		}
153
	}
154
155
156
	/**

class.vartype-compare.php 1 location

@@ 231-238 (lines=8) @@
228
	 * @param string $tab
229
	 * @return string
230
	 */
231
	function get_tab_title( $tab ) {
232
		if ( isset( $this->tests[ $tab ]['title'] ) && is_string( $this->tests[ $tab ]['title'] ) && $this->tests[ $tab ]['title'] !== '' ) {
233
			return $this->tests[ $tab ]['title'];
234
		}
235
		else {
236
			return '';
237
		}
238
	}
239
240
241
	/**