Code Duplication    Length = 5-5 lines in 2 locations

core/EE_Config.core.php 2 locations

@@ 1359-1363 (lines=5) @@
1356
    public static function register_forward($route = null, $status = 0, $forward = null, $key = 'ee')
1357
    {
1358
        do_action('AHEE__EE_Config__register_forward', $route, $status, $forward);
1359
        if (! isset(EE_Config::$_module_route_map[$key][$route]) || empty($route)) {
1360
            $msg = sprintf(
1361
                __('The module route %s for this forward has not been registered.', 'event_espresso'),
1362
                $route
1363
            );
1364
            EE_Error::add_error($msg . '||' . $msg, __FILE__, __FUNCTION__, __LINE__);
1365
            return false;
1366
        }
@@ 1446-1450 (lines=5) @@
1443
    public static function register_view($route = null, $status = 0, $view = null, $key = 'ee')
1444
    {
1445
        do_action('AHEE__EE_Config__register_view__begin', $route, $status, $view);
1446
        if (! isset(EE_Config::$_module_route_map[$key][$route]) || empty($route)) {
1447
            $msg = sprintf(
1448
                __('The module route %s for this view has not been registered.', 'event_espresso'),
1449
                $route
1450
            );
1451
            EE_Error::add_error($msg . '||' . $msg, __FILE__, __FUNCTION__, __LINE__);
1452
            return false;
1453
        }