Code Duplication    Length = 10-10 lines in 2 locations

classes/controllers/FrmStylesController.php 2 locations

@@ 334-343 (lines=10) @@
331
        }
332
    }
333
334
    public static function reset_styling() {
335
		FrmAppHelper::permission_check('frm_change_settings');
336
        check_ajax_referer( 'frm_ajax', 'nonce' );
337
338
        $frm_style = new FrmStyle();
339
        $defaults = $frm_style->get_defaults();
340
341
        echo json_encode( $defaults );
342
        wp_die();
343
    }
344
345
    public static function change_styling() {
346
        check_ajax_referer( 'frm_ajax', 'nonce' );
@@ 410-419 (lines=10) @@
407
		include( $file_name );
408
    }
409
410
    public static function load_css() {
411
        header('Content-type: text/css');
412
413
        $frm_style = new FrmStyle();
414
        $defaults = $frm_style->get_defaults();
415
		$style = '';
416
417
		include( FrmAppHelper::plugin_path() . '/css/_single_theme.css.php' );
418
        wp_die();
419
    }
420
421
	public static function load_saved_css() {
422
		$css = get_transient( 'frmpro_css' );