Code Duplication    Length = 5-5 lines in 2 locations

core/EE_Config.core.php 2 locations

@@ 1480-1484 (lines=5) @@
1477
    public static function register_forward($route = null, $status = 0, $forward = null, $key = 'ee')
1478
    {
1479
        do_action('AHEE__EE_Config__register_forward', $route, $status, $forward);
1480
        if (! isset(EE_Config::$_module_route_map[$key][$route]) || empty($route)) {
1481
            $msg = sprintf(
1482
                __('The module route %s for this forward has not been registered.', 'event_espresso'),
1483
                $route
1484
            );
1485
            EE_Error::add_error($msg . '||' . $msg, __FILE__, __FUNCTION__, __LINE__);
1486
            return false;
1487
        }
@@ 1567-1571 (lines=5) @@
1564
    public static function register_view($route = null, $status = 0, $view = null, $key = 'ee')
1565
    {
1566
        do_action('AHEE__EE_Config__register_view__begin', $route, $status, $view);
1567
        if (! isset(EE_Config::$_module_route_map[$key][$route]) || empty($route)) {
1568
            $msg = sprintf(
1569
                __('The module route %s for this view has not been registered.', 'event_espresso'),
1570
                $route
1571
            );
1572
            EE_Error::add_error($msg . '||' . $msg, __FILE__, __FUNCTION__, __LINE__);
1573
            return false;
1574
        }