Code Duplication    Length = 3-3 lines in 2 locations

classes/models/FrmField.php 2 locations

@@ 447-449 (lines=3) @@
444
			$form_table_name = $wpdb->prefix . 'frm_forms';
445
        }
446
447
		if ( ! empty( $order_by ) && strpos( $order_by, 'ORDER BY' ) === false ) {
448
			$order_by = ' ORDER BY ' . $order_by;
449
		}
450
451
        $limit = FrmAppHelper::esc_limit($limit);
452
@@ 565-567 (lines=3) @@
562
	public static function getIds( $where = '', $order_by = '', $limit = '' ) {
563
		_deprecated_function( __FUNCTION__, '2.0' );
564
        global $wpdb;
565
        if ( ! empty($order_by) && ! strpos($order_by, 'ORDER BY') !== false ) {
566
			$order_by = ' ORDER BY ' . $order_by;
567
        }
568
569
		$query = 'SELECT fi.id  FROM ' . $wpdb->prefix . 'frm_fields fi ' .
570
			'LEFT OUTER JOIN ' . $wpdb->prefix . 'frm_forms fr ON fi.form_id=fr.id' .