Code Duplication    Length = 7-7 lines in 2 locations

core/EE_Registry.core.php 2 locations

@@ 606-612 (lines=7) @@
603
        // $this->_cache_on is toggled during the recursive loading that can occur with dependency injection
604
        // $cache is controlled by individual calls to separate Registry loader methods like load_class()
605
        // $load_only is also controlled by individual calls to separate Registry loader methods like load_file()
606
        if ($this->_cache_on && $cache && ! $load_only) {
607
            // return object if it's already cached
608
            $cached_class = $this->_get_cached_class($class_name, $addon);
609
            if ($cached_class !== null) {
610
                return $cached_class;
611
            }
612
        }
613
        // instantiate the requested object
614
        $class_obj = $this->_create_object($class_name, $arguments, $addon, $from_db);
615
        // if caching is turned on OR this class is cached in a class property
@@ 708-714 (lines=7) @@
705
        // $this->_cache_on is toggled during the recursive loading that can occur with dependency injection
706
        // $cache is controlled by individual calls to separate Registry loader methods like load_class()
707
        // $load_only is also controlled by individual calls to separate Registry loader methods like load_file()
708
        if ($this->_cache_on && $cache && ! $load_only) {
709
            // return object if it's already cached
710
            $cached_class = $this->_get_cached_class($class_name, $class_prefix);
711
            if ($cached_class !== null) {
712
                return $cached_class;
713
            }
714
        }
715
        // if the class doesn't already exist.. then we need to try and find the file and load it
716
        if ( ! $class_exists) {
717
            // get full path to file