Code Duplication    Length = 4-6 lines in 2 locations

classes/helpers/FrmAppHelper.php 1 location

@@ 1120-1123 (lines=4) @@
1117
            unset($opt, $defaut);
1118
        }
1119
1120
        if ( ! isset($values['custom_style']) ) {
1121
            $frm_settings = self::get_settings();
1122
			$values['custom_style'] = ( $post_values && isset( $post_values['options']['custom_style'] ) ) ? absint( $_POST['options']['custom_style'] ) : ( $frm_settings->load_style != 'none' );
1123
        }
1124
1125
		foreach ( array( 'before', 'after', 'submit' ) as $h ) {
1126
			if ( ! isset( $values[ $h . '_html' ] ) ) {

classes/helpers/FrmFormsHelper.php 1 location

@@ 177-182 (lines=6) @@
174
175
        $values = self::fill_default_opts($values, false, $post_values);
176
177
        if ( $post_values && isset($post_values['options']['custom_style']) ) {
178
            $values['custom_style'] = $post_values['options']['custom_style'];
179
        } else {
180
            $frm_settings = FrmAppHelper::get_settings();
181
            $values['custom_style'] = ( $frm_settings->load_style != 'none' );
182
        }
183
184
        return apply_filters('frm_setup_new_form_vars', $values);
185
    }