Code Duplication    Length = 7-7 lines in 2 locations

core/EE_Registry.core.php 2 locations

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