Code Duplication    Length = 5-5 lines in 2 locations

core/EE_Config.core.php 2 locations

@@ 1381-1385 (lines=5) @@
1378
	 */
1379
	public static function register_forward( $route = null, $status = 0, $forward = null, $key = 'ee' ) {
1380
		do_action( 'AHEE__EE_Config__register_forward', $route, $status, $forward );
1381
		if ( ! isset( EE_Config::$_module_route_map[ $key ][ $route ] ) || empty( $route ) ) {
1382
			$msg = sprintf(
1383
				__( 'The module route %s for this forward has not been registered.', 'event_espresso' ),
1384
				$route
1385
			);
1386
			EE_Error::add_error( $msg . '||' . $msg, __FILE__, __FUNCTION__, __LINE__ );
1387
			return false;
1388
		}
@@ 1466-1470 (lines=5) @@
1463
	 */
1464
	public static function register_view( $route = null, $status = 0, $view = null, $key = 'ee' ) {
1465
		do_action( 'AHEE__EE_Config__register_view__begin', $route, $status, $view );
1466
		if ( ! isset( EE_Config::$_module_route_map[ $key ][ $route ] ) || empty( $route ) ) {
1467
			$msg = sprintf(
1468
				__( 'The module route %s for this view has not been registered.', 'event_espresso' ),
1469
				$route
1470
			);
1471
			EE_Error::add_error( $msg . '||' . $msg, __FILE__, __FUNCTION__, __LINE__ );
1472
			return false;
1473
		}