Code Duplication    Length = 3-3 lines in 3 locations

core/EE_Config.core.php 3 locations

@@ 692-694 (lines=3) @@
689
		// ensure config class is set to something
690
		$config_class = $this->_set_config_class( $config_class, $name );
691
		// run tests 1-4, 6, and 7 to verify all config params are set and valid
692
		if ( ! $this->_verify_config_params( $section, $name, $config_class, null, array( 1, 2, 3, 4, 5, 6 ) ) ) {
693
			return null;
694
		}
695
		$config_option_name = $this->_generate_config_option_name( $section, $name );
696
		// if the config option name hasn't been added yet to the list of option names we're tracking, then do so now
697
		if ( ! isset( $this->_addon_option_names[ $config_option_name ] ) ) {
@@ 749-751 (lines=3) @@
746
		// get class name of the incoming object
747
		$config_class = get_class( $config_obj );
748
		// run tests 1-5 and 9 to verify config
749
		if ( ! $this->_verify_config_params(
750
			$section,
751
			$name,
752
			$config_class,
753
			$config_obj,
754
			array( 1, 2, 3, 4, 7, 9 )
@@ 813-815 (lines=3) @@
810
		// ensure config class is set to something
811
		$config_class = $this->_set_config_class( $config_class, $name );
812
		// run tests 1-4, 6 and 7 to verify that all params have been set
813
		if ( ! $this->_verify_config_params( $section, $name, $config_class, null, array( 1, 2, 3, 4, 5, 6 ) ) ) {
814
			return null;
815
		}
816
		// now test if the requested config object exists, but suppress errors
817
		if ( $this->_verify_config_params( $section, $name, $config_class, null, array( 7, 8 ), false ) ) {
818
			// config already exists, so pass it back