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

ConfigMerger   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 14
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A merge() 0 7 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
}