Code Duplication    Length = 6-6 lines in 2 locations

code/model/Pipeline.php 1 location

@@ 403-408 (lines=6) @@
400
401
        // Merge with defaults
402
        if ($this->Config) {
403
            if (!$this->mergedConfig) {
404
                $this->mergedConfig = $data ?: unserialize($this->Config);
405
                if ($default = self::config()->default_config) {
406
                    Config::merge_array_low_into_high($this->mergedConfig, $default);
407
                }
408
            }
409
            return $this->mergedConfig;
410
        }
411

code/model/steps/PipelineStep.php 1 location

@@ 110-115 (lines=6) @@
107
        }
108
109
        // Merge with defaults
110
        if (!$this->mergedConfig) {
111
            $this->mergedConfig = unserialize($this->Config);
112
            if ($default = self::config()->default_config) {
113
                Config::merge_array_low_into_high($this->mergedConfig, $default);
114
            }
115
        }
116
        return $this->mergedConfig;
117
    }
118