Code Duplication    Length = 4-7 lines in 2 locations

src/ConfigurationLoader.php 2 locations

@@ 118-124 (lines=7) @@
115
116
        $configuration = $this->mergeConfiguration();
117
118
        if ($this->options->areParametersEnabled()) {
119
            if (isset($configuration[$this->options->getParametersKey()])) {
120
                $this->mergeParameters($configuration[$this->options->getParametersKey()]);
121
            }
122
123
            $this->replacePlaceholders($configuration);
124
        }
125
126
        return $configuration;
127
    }
@@ 300-303 (lines=4) @@
297
        $values = $this->loader->load($file);
298
299
        if (!empty($values)) {
300
            if ($this->options->areParametersEnabled() && isset($values[$this->options->getParametersKey()])) {
301
                $this->replacePlaceholders($values[$this->options->getParametersKey()]);
302
                $this->mergeParameters($values[$this->options->getParametersKey()]);
303
            }
304
305
            if ($this->options->areImportsEnabled()) {
306
                $this->loadImports($values, $file);