Code Duplication    Length = 5-5 lines in 2 locations

core/EE_Config.core.php 2 locations

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