Code Duplication    Length = 7-7 lines in 2 locations

core/EE_Registry.core.php 2 locations

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