Code Duplication    Length = 5-5 lines in 2 locations

core/EE_Config.core.php 2 locations

@@ 1428-1432 (lines=5) @@
1425
	 */
1426
	public static function register_forward( $route = null, $status = 0, $forward = null, $key = 'ee' ) {
1427
		do_action( 'AHEE__EE_Config__register_forward', $route, $status, $forward );
1428
		if ( ! isset( EE_Config::$_module_route_map[ $key ][ $route ] ) || empty( $route ) ) {
1429
			$msg = sprintf(
1430
				__( 'The module route %s for this forward has not been registered.', 'event_espresso' ),
1431
				$route
1432
			);
1433
			EE_Error::add_error( $msg . '||' . $msg, __FILE__, __FUNCTION__, __LINE__ );
1434
			return false;
1435
		}
@@ 1513-1517 (lines=5) @@
1510
	 */
1511
	public static function register_view( $route = null, $status = 0, $view = null, $key = 'ee' ) {
1512
		do_action( 'AHEE__EE_Config__register_view__begin', $route, $status, $view );
1513
		if ( ! isset( EE_Config::$_module_route_map[ $key ][ $route ] ) || empty( $route ) ) {
1514
			$msg = sprintf(
1515
				__( 'The module route %s for this view has not been registered.', 'event_espresso' ),
1516
				$route
1517
			);
1518
			EE_Error::add_error( $msg . '||' . $msg, __FILE__, __FUNCTION__, __LINE__ );
1519
			return false;
1520
		}