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

@@ 272-281 (lines=10) @@
269
				$config,
270
				$this
271
			);
272
			if ( is_object( $settings ) && property_exists( $this, $config ) ) {
273
				$this->{$config} = apply_filters( 'FHEE__EE_Config___load_core_config__' . $config, $settings );
274
				//call configs populate method to ensure any defaults are set for empty values.
275
				if ( method_exists( $settings, 'populate' ) ) {
276
					$this->{$config}->populate();
277
				}
278
				if ( method_exists( $settings, 'do_hooks' ) ) {
279
					$this->{$config}->do_hooks();
280
				}
281
			}
282
		}
283
		if ( apply_filters( 'FHEE__EE_Config___load_core_config__update_espresso_config', false ) ) {
284
			$this->update_espresso_config();