Code Duplication    Length = 5-5 lines in 2 locations

core/EE_Config.core.php 2 locations

@@ 1403-1407 (lines=5) @@
1400
	 */
1401
	public static function register_forward( $route = null, $status = 0, $forward = null, $key = 'ee' ) {
1402
		do_action( 'AHEE__EE_Config__register_forward', $route, $status, $forward );
1403
		if ( ! isset( EE_Config::$_module_route_map[ $key ][ $route ] ) || empty( $route ) ) {
1404
			$msg = sprintf(
1405
				__( 'The module route %s for this forward has not been registered.', 'event_espresso' ),
1406
				$route
1407
			);
1408
			EE_Error::add_error( $msg . '||' . $msg, __FILE__, __FUNCTION__, __LINE__ );
1409
			return false;
1410
		}
@@ 1488-1492 (lines=5) @@
1485
	 */
1486
	public static function register_view( $route = null, $status = 0, $view = null, $key = 'ee' ) {
1487
		do_action( 'AHEE__EE_Config__register_view__begin', $route, $status, $view );
1488
		if ( ! isset( EE_Config::$_module_route_map[ $key ][ $route ] ) || empty( $route ) ) {
1489
			$msg = sprintf(
1490
				__( 'The module route %s for this view has not been registered.', 'event_espresso' ),
1491
				$route
1492
			);
1493
			EE_Error::add_error( $msg . '||' . $msg, __FILE__, __FUNCTION__, __LINE__ );
1494
			return false;
1495
		}