Code Duplication    Length = 3-3 lines in 3 locations

core/EE_Config.core.php 3 locations

@@ 742-744 (lines=3) @@
739
        // ensure config class is set to something
740
        $config_class = $this->_set_config_class($config_class, $name);
741
        // run tests 1-4, 6, and 7 to verify all config params are set and valid
742
        if (! $this->_verify_config_params($section, $name, $config_class, null, array(1, 2, 3, 4, 5, 6))) {
743
            return null;
744
        }
745
        $config_option_name = $this->_generate_config_option_name($section, $name);
746
        // if the config option name hasn't been added yet to the list of option names we're tracking, then do so now
747
        if (! isset($this->_addon_option_names[ $config_option_name ])) {
@@ 799-801 (lines=3) @@
796
        // get class name of the incoming object
797
        $config_class = get_class($config_obj);
798
        // run tests 1-5 and 9 to verify config
799
        if (! $this->_verify_config_params(
800
            $section,
801
            $name,
802
            $config_class,
803
            $config_obj,
804
            array(1, 2, 3, 4, 7, 9)
@@ 863-865 (lines=3) @@
860
        // ensure config class is set to something
861
        $config_class = $this->_set_config_class($config_class, $name);
862
        // run tests 1-4, 6 and 7 to verify that all params have been set
863
        if (! $this->_verify_config_params($section, $name, $config_class, null, array(1, 2, 3, 4, 5, 6))) {
864
            return null;
865
        }
866
        // now test if the requested config object exists, but suppress errors
867
        if ($this->_verify_config_params($section, $name, $config_class, null, array(7, 8), false)) {
868
            // config already exists, so pass it back