Code Duplication    Length = 4-6 lines in 2 locations

classes/models/FrmForm.php 2 locations

@@ 555-558 (lines=4) @@
552
553
        $results = FrmDb::get_row( $table_name, $where );
554
555
        if ( isset($results->options) ) {
556
			FrmDb::set_cache( $results->id, $results, 'frm_form' );
557
            $results->options = maybe_unserialize($results->options);
558
        }
559
        return stripslashes_deep($results);
560
    }
561
@@ 579-584 (lines=6) @@
576
			$results = $wpdb->get_results( $query );
577
		}
578
579
		if ( $results ) {
580
			foreach ( $results as $result ) {
581
				FrmDb::set_cache( $result->id, $result, 'frm_form' );
582
				$result->options = maybe_unserialize( $result->options );
583
			}
584
		}
585
586
		if ( $limit == ' LIMIT 1' || $limit == 1 ) {
587
			// return the first form object if we are only getting one form