Code Duplication    Length = 5-5 lines in 2 locations

core/EE_Config.core.php 2 locations

@@ 1348-1352 (lines=5) @@
1345
    public static function register_forward($route = null, $status = 0, $forward = null, $key = 'ee')
1346
    {
1347
        do_action('AHEE__EE_Config__register_forward', $route, $status, $forward);
1348
        if (! isset(EE_Config::$_module_route_map[$key][$route]) || empty($route)) {
1349
            $msg = sprintf(
1350
                __('The module route %s for this forward has not been registered.', 'event_espresso'),
1351
                $route
1352
            );
1353
            EE_Error::add_error($msg . '||' . $msg, __FILE__, __FUNCTION__, __LINE__);
1354
            return false;
1355
        }
@@ 1435-1439 (lines=5) @@
1432
    public static function register_view($route = null, $status = 0, $view = null, $key = 'ee')
1433
    {
1434
        do_action('AHEE__EE_Config__register_view__begin', $route, $status, $view);
1435
        if (! isset(EE_Config::$_module_route_map[$key][$route]) || empty($route)) {
1436
            $msg = sprintf(
1437
                __('The module route %s for this view has not been registered.', 'event_espresso'),
1438
                $route
1439
            );
1440
            EE_Error::add_error($msg . '||' . $msg, __FILE__, __FUNCTION__, __LINE__);
1441
            return false;
1442
        }