Code Duplication    Length = 7-7 lines in 2 locations

core/EE_Registry.core.php 2 locations

@@ 697-703 (lines=7) @@
694
        // $this->_cache_on is toggled during the recursive loading that can occur with dependency injection
695
        // $cache is controlled by individual calls to separate Registry loader methods like load_class()
696
        // $load_only is also controlled by individual calls to separate Registry loader methods like load_file()
697
        if ($this->_cache_on && $cache && ! $load_only) {
698
            // return object if it's already cached
699
            $cached_class = $this->_get_cached_class($class_name, $addon);
700
            if ($cached_class !== null) {
701
                return $cached_class;
702
            }
703
        }
704
        // obtain the loader method from the dependency map
705
        $loader = $this->_dependency_map->class_loader($class_name);
706
        // instantiate the requested object
@@ 771-777 (lines=7) @@
768
        // $this->_cache_on is toggled during the recursive loading that can occur with dependency injection
769
        // $cache is controlled by individual calls to separate Registry loader methods like load_class()
770
        // $load_only is also controlled by individual calls to separate Registry loader methods like load_file()
771
        if ($this->_cache_on && $cache && ! $load_only) {
772
            // return object if it's already cached
773
            $cached_class = $this->_get_cached_class($class_name, $class_prefix);
774
            if ($cached_class !== null) {
775
                return $cached_class;
776
            }
777
        }
778
        // if the class doesn't already exist.. then we need to try and find the file and load it
779
        if (! $class_exists) {
780
            // get full path to file