Code Duplication    Length = 10-10 lines in 2 locations

classes/controllers/FrmStylesController.php 2 locations

@@ 347-356 (lines=10) @@
344
        }
345
    }
346
347
    public static function reset_styling() {
348
		FrmAppHelper::permission_check( 'frm_change_settings' );
349
        check_ajax_referer( 'frm_ajax', 'nonce' );
350
351
        $frm_style = new FrmStyle();
352
        $defaults = $frm_style->get_defaults();
353
354
        echo json_encode( $defaults );
355
        wp_die();
356
    }
357
358
	public static function change_styling() {
359
		check_ajax_referer( 'frm_ajax', 'nonce' );
@@ 420-429 (lines=10) @@
417
		include( $file_name );
418
    }
419
420
    public static function load_css() {
421
		header( 'Content-type: text/css' );
422
423
        $frm_style = new FrmStyle();
424
        $defaults = $frm_style->get_defaults();
425
		$style = '';
426
427
		include( FrmAppHelper::plugin_path() . '/css/_single_theme.css.php' );
428
        wp_die();
429
    }
430
431
	public static function load_saved_css() {
432
		$css = get_transient( 'frmpro_css' );