Code Duplication    Length = 3-4 lines in 2 locations

classes/controllers/FrmAppController.php 2 locations

@@ 265-267 (lines=3) @@
262
		include $shared_path . 'upgrade_overlay.php';
263
		include $shared_path . 'confirm-overlay.php';
264
265
		if ( FrmAppHelper::is_admin_page( 'formidable' ) && in_array( FrmAppHelper::get_param( 'frm_action' ), array( '', 'list', 'trash' ), true ) ) {
266
			self::new_form_overlay_html();
267
		}
268
	}
269
270
	private static function new_form_overlay_html() {
@@ 409-412 (lines=4) @@
406
			self::admin_js();
407
		}
408
409
		if ( FrmAppHelper::is_admin_page( 'formidable' ) && in_array( FrmAppHelper::get_param( 'frm_action' ), array( 'add_new', 'list_templates' ), true ) ) {
410
			wp_safe_redirect( admin_url( 'admin.php?page=formidable&triggerNewFormModal=1' ) );
411
			exit;
412
		}
413
	}
414
415
	public static function admin_js() {