Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | 10 | public function merge($contents, $strategy = self::PREFER_ORIGINAL) { |
|
26 | 10 | $data = CollectionUtils::toMap($contents); |
|
27 | |||
28 | 10 | $this->mergeFields($this->name, $data->get('name'), $strategy); |
|
29 | 10 | $this->mergeFields($this->url, $data->get('url'), $strategy); |
|
30 | 10 | $this->mergeFields($this->email, $data->get('email'), $strategy); |
|
31 | |||
32 | // extensions |
||
33 | 10 | $this->parseExtensions($data); |
|
34 | 10 | } |
|
35 | |||
95 |