Conditions | 4 |
Paths | 4 |
Total Lines | 17 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 4 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
39 | 2 | public function nominate(array $backups) |
|
40 | { |
||
41 | 2 | $result = array(); |
|
42 | |||
43 | /** @var RotatorInterface $rotator */ |
||
44 | 2 | foreach ($this->rotators as $rotator) { |
|
45 | |||
46 | 2 | foreach ($rotator->nominate($backups) as $nomination) { |
|
47 | |||
48 | 2 | if (!in_array($nomination, $result)) { |
|
49 | 2 | $result[] = $nomination; |
|
50 | 2 | } |
|
51 | 2 | } |
|
52 | 2 | } |
|
53 | |||
54 | 2 | return $result; |
|
55 | } |
||
56 | |||
65 |