Code Duplication    Length = 3-3 lines in 2 locations

classes/models/FrmField.php 2 locations

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