Code Duplication    Length = 4-7 lines in 2 locations

src/ConfigurationLoader.php 2 locations

@@ 123-129 (lines=7) @@
120
121
        $configuration = $this->mergeConfiguration();
122
123
        if ($this->options->areParametersEnabled()) {
124
            if (isset($configuration[$this->options->getParametersKey()])) {
125
                $this->mergeParameters($configuration[$this->options->getParametersKey()]);
126
            }
127
128
            $this->replacePlaceholders($configuration);
129
        }
130
131
        return $configuration;
132
    }
@@ 339-342 (lines=4) @@
336
        $values = $this->loader->load($file);
337
338
        if (!empty($values)) {
339
            if ($this->options->areParametersEnabled() && isset($values[$this->options->getParametersKey()])) {
340
                $this->replacePlaceholders($values[$this->options->getParametersKey()]);
341
                $this->mergeParameters($values[$this->options->getParametersKey()]);
342
            }
343
344
            if ($this->options->areImportsEnabled()) {
345
                $this->loadImports($values, $file);