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

Merger::remix()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 1
crap 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