Code Duplication    Length = 10-10 lines in 2 locations

classes/controllers/FrmStylesController.php 2 locations

@@ 437-446 (lines=10) @@
434
		echo '</div>';
435
	}
436
437
	public static function load_css() {
438
		header( 'Content-type: text/css' );
439
440
		$frm_style = new FrmStyle();
441
		$defaults  = $frm_style->get_defaults();
442
		$style     = '';
443
444
		include( FrmAppHelper::plugin_path() . '/css/_single_theme.css.php' );
445
		wp_die();
446
	}
447
448
	public static function load_saved_css() {
449
		$css = get_transient( 'frmpro_css' );
@@ 362-371 (lines=10) @@
359
		}
360
	}
361
362
	public static function reset_styling() {
363
		FrmAppHelper::permission_check( 'frm_change_settings' );
364
		check_ajax_referer( 'frm_ajax', 'nonce' );
365
366
		$frm_style = new FrmStyle();
367
		$defaults  = $frm_style->get_defaults();
368
369
		echo json_encode( $defaults );
370
		wp_die();
371
	}
372
373
	public static function change_styling() {
374
		check_ajax_referer( 'frm_ajax', 'nonce' );