Completed
Pull Request — master (#42)
by Simon
01:41
created

ConfigMerger::merge()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 7
rs 9.4285
c 1
b 0
f 0
cc 2
eloc 4
nc 2
nop 2
1
<?php declare(strict_types=1);
2
3
4
namespace Shopware\Psh\Config;
5
6
7
class ConfigMerger
8
{
9
    /**
10
     * @param Config $config
11
     * @return Config
12
     */
13
    public function merge(Config $config, Config $override = null): Config
14
    {
15
        if($override) {
16
            $config = new Config($override->getHeader(), $override->getDefaultEnvironment(), []);
17
        }
18
        return $config;
19
    }
20
}