Code Duplication    Length = 5-6 lines in 2 locations

classes/models/FrmField.php 2 locations

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