KeywordListUpdater   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 17
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A update() 0 8 1
1
<?php
2
namespace Yoanm\ComposerConfigManager\Application\Updater;
3
4
class KeywordListUpdater
5
{
6
    /**
7
     * @param string[] $newList
8
     * @param string[] $oldList
9
     *
10
     * @return string[]
11
     */
12 3
    public function update(array $oldList, array $newList)
13
    {
14 3
        return array_values(
15 3
            array_unique(
16 3
                array_merge($newList, $oldList)
17 3
            )
18 3
        );
19
    }
20
}
21