Code Duplication    Length = 10-12 lines in 2 locations

code/model/Pipeline.php 1 location

@@ 429-440 (lines=12) @@
426
     * @param string $setting Settings
427
     * @return mixed Value of setting, or null if not set
428
     */
429
    public function getConfigSetting($setting)
430
    {
431
        $source = $this->getConfigData();
432
433
        foreach (func_get_args() as $setting) {
434
            if (empty($source[$setting])) {
435
                return null;
436
            }
437
            $source = $source[$setting];
438
        }
439
440
        return $source;
441
    }
442
443
    /**

code/model/steps/PipelineStep.php 1 location

@@ 141-150 (lines=10) @@
138
     * @param string $setting Settings
139
     * @return mixed Value of setting, or null if not set
140
     */
141
    public function getConfigSetting($setting)
142
    {
143
        $source = $this->getConfigData();
144
        foreach (func_get_args() as $setting) {
145
            if (empty($source[$setting])) {
146
                return null;
147
            }
148
            $source = $source[$setting];
149
        }
150
        return $source;
151
    }
152
153
    public function finish()