Code Duplication    Length = 3-3 lines in 3 locations

core/EE_Config.core.php 3 locations

@@ 757-759 (lines=3) @@
754
        // ensure config class is set to something
755
        $config_class = $this->_set_config_class($config_class, $name);
756
        // run tests 1-4, 6, and 7 to verify all config params are set and valid
757
        if (! $this->_verify_config_params($section, $name, $config_class, null, array(1, 2, 3, 4, 5, 6))) {
758
            return null;
759
        }
760
        $config_option_name = $this->_generate_config_option_name($section, $name);
761
        // if the config option name hasn't been added yet to the list of option names we're tracking, then do so now
762
        if (! isset($this->_addon_option_names[$config_option_name])) {
@@ 815-817 (lines=3) @@
812
        // get class name of the incoming object
813
        $config_class = get_class($config_obj);
814
        // run tests 1-5 and 9 to verify config
815
        if (! $this->_verify_config_params(
816
            $section,
817
            $name,
818
            $config_class,
819
            $config_obj,
820
            array(1, 2, 3, 4, 7, 9)
@@ 880-882 (lines=3) @@
877
        // ensure config class is set to something
878
        $config_class = $this->_set_config_class($config_class, $name);
879
        // run tests 1-4, 6 and 7 to verify that all params have been set
880
        if (! $this->_verify_config_params($section, $name, $config_class, null, array(1, 2, 3, 4, 5, 6))) {
881
            return null;
882
        }
883
        // now test if the requested config object exists, but suppress errors
884
        if ($this->_verify_config_params($section, $name, $config_class, null, array(7, 8), false)) {
885
            // config already exists, so pass it back