Code Duplication    Length = 5-5 lines in 2 locations

core/EE_Config.core.php 2 locations

@@ 1320-1324 (lines=5) @@
1317
    public static function register_forward($route = null, $status = 0, $forward = null, $key = 'ee')
1318
    {
1319
        do_action('AHEE__EE_Config__register_forward', $route, $status, $forward);
1320
        if (! isset(EE_Config::$_module_route_map[ $key ][ $route ]) || empty($route)) {
1321
            $msg = sprintf(
1322
                __('The module route %s for this forward has not been registered.', 'event_espresso'),
1323
                $route
1324
            );
1325
            EE_Error::add_error($msg . '||' . $msg, __FILE__, __FUNCTION__, __LINE__);
1326
            return false;
1327
        }
@@ 1405-1409 (lines=5) @@
1402
    public static function register_view($route = null, $status = 0, $view = null, $key = 'ee')
1403
    {
1404
        do_action('AHEE__EE_Config__register_view__begin', $route, $status, $view);
1405
        if (! isset(EE_Config::$_module_route_map[ $key ][ $route ]) || empty($route)) {
1406
            $msg = sprintf(
1407
                __('The module route %s for this view has not been registered.', 'event_espresso'),
1408
                $route
1409
            );
1410
            EE_Error::add_error($msg . '||' . $msg, __FILE__, __FUNCTION__, __LINE__);
1411
            return false;
1412
        }