Passed
Push — master ( 2f6942...d6d802 )
by Chris
28:11
created

Merger   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 2
dl 0
loc 5
ccs 2
cts 2
cp 1
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A remix() 0 3 1
1
<?php
2
3
namespace WebTheory\Collection\Fusion;
4
5
use WebTheory\Collection\Contracts\ArrayFusionInterface;
6
7
class Merger implements ArrayFusionInterface
8
{
9 9
    public function remix(array ...$collections): array
10
    {
11 9
        return array_unique(array_merge(...$collections), SORT_REGULAR);
12
    }
13
}
14