Test Failed
Pull Request — master (#10)
by Yo
02:26
created

KeywordListUpdater::update()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 2
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
    public function update(array $oldList, array $newList)
13
    {
14
        return array_values(
15
            array_unique(
16
                array_merge($newList, $oldList)
17
            )
18
        );
19
    }
20
}
21