Code Duplication    Length = 9-10 lines in 2 locations

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();

core/EE_Config.core.php 1 location

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