Code Duplication    Length = 4-7 lines in 2 locations

src/ConfigurationLoader.php 2 locations

@@ 122-128 (lines=7) @@
119
120
        $configuration = $this->mergeConfiguration();
121
122
        if ($this->options->areParametersEnabled()) {
123
            if (isset($configuration[$this->options->getParametersKey()])) {
124
                $this->mergeParameters($configuration[$this->options->getParametersKey()]);
125
            }
126
127
            $this->replacePlaceholders($configuration);
128
        }
129
130
        return $configuration;
131
    }
@@ 368-371 (lines=4) @@
365
        $values = $this->loader->load($file);
366
367
        if (!empty($values)) {
368
            if ($this->options->areParametersEnabled() && isset($values[$this->options->getParametersKey()])) {
369
                $this->replacePlaceholders($values[$this->options->getParametersKey()]);
370
                $this->mergeParameters($values[$this->options->getParametersKey()]);
371
            }
372
373
            if ($this->options->areImportsEnabled()) {
374
                $this->loadImports($values, $file);