KeywordListUpdater::update()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 6
cts 6
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 2
crap 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