Code Duplication    Length = 3-4 lines in 2 locations

classes/controllers/FrmAppController.php 2 locations

@@ 270-272 (lines=3) @@
267
		include $shared_path . 'upgrade_overlay.php';
268
		include $shared_path . 'confirm-overlay.php';
269
270
		if ( FrmAppHelper::is_admin_page( 'formidable' ) && in_array( FrmAppHelper::get_param( 'frm_action' ), array( '', 'list', 'trash' ), true ) ) {
271
			self::new_form_overlay_html();
272
		}
273
	}
274
275
	private static function new_form_overlay_html() {
@@ 419-422 (lines=4) @@
416
			self::admin_js();
417
		}
418
419
		if ( FrmAppHelper::is_admin_page( 'formidable' ) && in_array( FrmAppHelper::get_param( 'frm_action' ), array( 'add_new', 'list_templates' ), true ) ) {
420
			wp_safe_redirect( admin_url( 'admin.php?page=formidable&triggerNewFormModal=1' ) );
421
			exit;
422
		}
423
	}
424
425
	public static function admin_js() {