Code Duplication    Length = 9-10 lines in 2 locations

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

core/EE_Network_Config.core.php 1 location

@@ 87-95 (lines=9) @@
84
                $settings = $core;
85
                add_filter('FHEE__EE_Network_Config___load_config__update_network_config', '__return_true');
86
            }
87
            if (is_object($settings) && property_exists($this, $config_prop)) {
88
                $this->{$config_prop} = apply_filters(
89
                    'FHEE__EE_Network_Config___load_config__config_settings',
90
                    $settings,
91
                    $config_prop,
92
                    $this
93
                );
94
                if (method_exists($settings, 'populate')) {
95
                    $this->{$config_prop}->populate();
96
                }
97
                if (method_exists($settings, 'do_hooks')) {
98
                    $this->{$config_prop}->do_hooks();