Code Duplication    Length = 3-3 lines in 2 locations

classes/models/FrmField.php 2 locations

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