Code Duplication    Length = 5-5 lines in 2 locations

src/core/Context.class.php 2 locations

@@ 409-413 (lines=5) @@
406
407
            // global model
408
            // let's try to autoload that baby
409
            if (!class_exists($class)) {
410
                // it's not there. the hunt is on
411
                $file = Config::get('core.model_dir') . '/' . str_replace('\\', DIRECTORY_SEPARATOR, $origModelName) . 'Model.class.php';
412
                require($file);
413
            }
414
415
        } else {
416
@@ 429-433 (lines=5) @@
426
427
            // module model
428
            // let's try to autoload the baby
429
            if (!class_exists($class)) {
430
                // it's not there. the hunt is on
431
                $file = Config::get('core.module_dir') . '/' . $moduleName . '/models/' . str_replace('\\', DIRECTORY_SEPARATOR, $origModelName) . 'Model.class.php';
432
                require($file);
433
            }
434
        }
435
436
        if (!class_exists($class)) {