Code Duplication    Length = 4-6 lines in 2 locations

classes/models/FrmForm.php 2 locations

@@ 512-515 (lines=4) @@
509
510
        $results = FrmDb::get_row( $table_name, $where );
511
512
        if ( isset($results->options) ) {
513
			FrmAppHelper::set_cache( $results->id, $results, 'frm_form' );
514
            $results->options = maybe_unserialize($results->options);
515
        }
516
        return stripslashes_deep($results);
517
    }
518
@@ 533-538 (lines=6) @@
530
			$results = $wpdb->get_results( $query );
531
		}
532
533
		if ( $results ) {
534
			foreach ( $results as $result ) {
535
				FrmAppHelper::set_cache( $result->id, $result, 'frm_form' );
536
				$result->options = maybe_unserialize( $result->options );
537
			}
538
		}
539
540
		if ( $limit == ' LIMIT 1' || $limit == 1 ) {
541
			// return the first form object if we are only getting one form