Code Duplication    Length = 9-10 lines in 2 locations

core/EE_Config.core.php 1 location

@@ 286-295 (lines=10) @@
283
                $config,
284
                $this
285
            );
286
            if (is_object($settings) && property_exists($this, $config)) {
287
                $this->{$config} = apply_filters('FHEE__EE_Config___load_core_config__' . $config, $settings);
288
                // call configs populate method to ensure any defaults are set for empty values.
289
                if (method_exists($settings, 'populate')) {
290
                    $this->{$config}->populate();
291
                }
292
                if (method_exists($settings, 'do_hooks')) {
293
                    $this->{$config}->do_hooks();
294
                }
295
            }
296
        }
297
        if (apply_filters('FHEE__EE_Config___load_core_config__update_espresso_config', false)) {
298
            $this->update_espresso_config();

core/EE_Network_Config.core.php 1 location

@@ 104-112 (lines=9) @@
101
        do_action('AHEE__EE_Network_Config___load_config__start', $this);
102
        $config = $this->get_config();
103
        foreach ($config as $config_prop => $settings) {
104
            if (is_object($settings) && property_exists($this, $config_prop)) {
105
                $this->{$config_prop} = apply_filters(
106
                    'FHEE__EE_Network_Config___load_config__config_settings',
107
                    $settings,
108
                    $config_prop,
109
                    $this
110
                );
111
                if (method_exists($settings, 'populate')) {
112
                    $this->{$config_prop}->populate();
113
                }
114
                if (method_exists($settings, 'do_hooks')) {
115
                    $this->{$config_prop}->do_hooks();