Code Duplication    Length = 9-10 lines in 2 locations

core/EE_Network_Config.core.php 1 location

@@ 100-108 (lines=9) @@
97
		do_action( 'AHEE__EE_Network_Config___load_config__start', $this );
98
		$config = $this->get_config();
99
		foreach ( $config as $config_prop => $settings ) {
100
			if ( is_object( $settings ) && property_exists( $this, $config_prop ) ) {
101
				$this->{$config_prop} = apply_filters( 'FHEE__EE_Network_Config___load_config__config_settings', $settings, $config_prop, $this );
102
				if ( method_exists( $settings, 'populate' ) ) {
103
					$this->{$config_prop}->populate();
104
				}
105
				if ( method_exists( $settings, 'do_hooks' ) ) {
106
					$this->{$config_prop}->do_hooks();
107
				}
108
			}
109
		}
110
		if ( apply_filters( 'FHEE__EE_Network_Config___load_config__update_network_config', false ) ) {
111
			$this->update_config();

core/EE_Config.core.php 1 location

@@ 257-266 (lines=10) @@
254
				$config,
255
				$this
256
			);
257
			if ( is_object( $settings ) && property_exists( $this, $config ) ) {
258
				$this->{$config} = apply_filters( 'FHEE__EE_Config___load_core_config__' . $config, $settings );
259
				//call configs populate method to ensure any defaults are set for empty values.
260
				if ( method_exists( $settings, 'populate' ) ) {
261
					$this->{$config}->populate();
262
				}
263
				if ( method_exists( $settings, 'do_hooks' ) ) {
264
					$this->{$config}->do_hooks();
265
				}
266
			}
267
		}
268
		if ( apply_filters( 'FHEE__EE_Config___load_core_config__update_espresso_config', false ) ) {
269
			$this->update_espresso_config();