Code Duplication    Length = 5-6 lines in 2 locations

classes/models/FrmField.php 2 locations

@@ 275-279 (lines=5) @@
272
            return $results;
273
        }
274
275
        if ( is_numeric($id) ) {
276
            wp_cache_set( $results->field_key, $results, 'frm_field' );
277
        } else if ( $results ) {
278
            wp_cache_set( $results->id, $results, 'frm_field' );
279
        }
280
281
		self::prepare_options( $results );
282
@@ 493-498 (lines=6) @@
490
491
				unset( $r_key, $result );
492
			}
493
		} else if ( $results ) {
494
			wp_cache_set( $results->id, $results, 'frm_field' );
495
			wp_cache_set( $results->field_key, $results, 'frm_field' );
496
497
			self::prepare_options( $results );
498
		}
499
	}
500
501
	/**