Code Duplication    Length = 8-8 lines in 2 locations

class.vartype.php 1 location

@@ 330-337 (lines=8) @@
327
				$active_class = ' class="ui-tabs-active ui-state-active"';
328
			}
329
330
			if ( $all === true ) {
331
				echo '
332
		<li><a href="#', $key, '" data-tab="', $key, '" data-tab-title="', $test_group['title'], '"><strong>', $test_group['title'], '</strong></a></li>';
333
			}
334
			else {
335
				echo '
336
		<li', $active_class, '><a href="', BASE_URI, $GLOBALS['type'], '/', $key, '/ajax" data-tab="', $key, '" data-tab-title="', $test_group['title'], '"><strong>', $test_group['title'], '</strong></a></li>';
337
			}
338
		}
339
		unset( $key, $test_group );
340

class.vartype-compare.php 1 location

@@ 289-296 (lines=8) @@
286
				$active_class = ' class="ui-tabs-active ui-state-active"';
287
			}
288
289
			if ( $all === true ) {
290
				echo '
291
		<li', $tooltip, '><a href="#', $key, '" data-tab="', $key, '" data-tab-title="', $test['title'], '"><strong>', $test['title'], '</strong></a></li>';
292
			}
293
			else {
294
				echo '
295
		<li', $active_class, $tooltip, '><a href="', BASE_URI, $GLOBALS['type'], '/', $key, '/ajax" data-tab="', $key, '" data-tab-title="', $test['title'], '"><strong>', $test['title'], '</strong></a></li>';
296
			}
297
		}
298
		unset( $key, $test, $tooltip );
299