Code Duplication    Length = 3-3 lines in 2 locations

classes/models/FrmField.php 2 locations

@@ 604-606 (lines=3) @@
601
602
		if ( is_array( $field ) ) {
603
			return $field['type'] == 'checkbox' || ( $field['type'] == 'data' && isset($field['data_type']) && $field['data_type'] == 'checkbox' ) || self::is_multiple_select( $field );
604
		} else {
605
			return $field->type == 'checkbox' || ( $field->type == 'data' && isset( $field->field_options['data_type'] ) && $field->field_options['data_type'] == 'checkbox' ) || self::is_multiple_select($field);
606
		}
607
	}
608
609
	/**
@@ 618-620 (lines=3) @@
615
	public static function is_multiple_select( $field ) {
616
		if ( is_array( $field ) ) {
617
			return self::is_option_true( $field, 'multiple' ) && ( ( $field['type'] == 'select' || ( $field['type'] == 'data' && isset( $field['data_type'] ) && $field['data_type'] == 'select') ) );
618
		} else {
619
			return self::is_option_true( $field, 'multiple' ) && ( ( $field->type == 'select' || ( $field->type == 'data' && isset($field->field_options['data_type'] ) && $field->field_options['data_type'] == 'select') ) );
620
		}
621
	}
622
623
	/**