Code Duplication    Length = 6-6 lines in 2 locations

code/model/Pipeline.php 1 location

@@ 392-397 (lines=6) @@
389
390
		// Merge with defaults
391
		if($this->Config) {
392
			if(!$this->mergedConfig) {
393
				$this->mergedConfig = $data ?: unserialize($this->Config);
394
				if($default = self::config()->default_config) {
395
					Config::merge_array_low_into_high($this->mergedConfig, $default);
396
				}
397
			}
398
			return $this->mergedConfig;
399
		}
400

code/model/steps/PipelineStep.php 1 location

@@ 105-110 (lines=6) @@
102
		}
103
104
		// Merge with defaults
105
		if(!$this->mergedConfig) {
106
			$this->mergedConfig = unserialize($this->Config);
107
			if($default = self::config()->default_config) {
108
				Config::merge_array_low_into_high($this->mergedConfig, $default);
109
			}
110
		}
111
		return $this->mergedConfig;
112
	}
113