| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | 10 | public function run(array $args) |
|
| 17 | { |
||
| 18 | 10 | $this->testArguments($args); |
|
| 19 | 8 | $newList = $this->newReturnType( |
|
| 20 | 8 | $this->collectionType($args[1]), [$args[0]]); |
|
| 21 | 8 | $oldList = $args[1]; |
|
| 22 | 8 | foreach ($oldList->value() as $value) { |
|
| 23 | 7 | $newList->set($value); |
|
| 24 | } |
||
| 25 | 8 | return $newList; |
|
| 26 | } |
||
| 27 | |||
| 45 |