Code Duplication    Length = 3-3 lines in 2 locations

class.vartype.php 2 locations

@@ 621-623 (lines=3) @@
618
		if ( in_array( $test, $this->test_groups[ $test_group ]['best'], true ) ) {
619
			$class[] = 'best';
620
		}
621
		else if ( in_array( $test, $this->test_groups[ $test_group ]['good'], true ) ) {
622
			$class[] = 'good';
623
		}
624
		if ( in_array( $test, $this->test_groups[ $test_group ]['break_at'], true ) ) {
625
			$class[] = 'end';
626
		}
@@ 624-626 (lines=3) @@
621
		else if ( in_array( $test, $this->test_groups[ $test_group ]['good'], true ) ) {
622
			$class[] = 'good';
623
		}
624
		if ( in_array( $test, $this->test_groups[ $test_group ]['break_at'], true ) ) {
625
			$class[] = 'end';
626
		}
627
628
		$class = ( ( count( $class ) > 0 ) ? ' class="' . implode( ' ', $class ) . '"' : '' );
629