Conditions | 2 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | 2 | public function parse(): ExternalEntitiesCollection |
|
19 | { |
||
20 | 2 | $collection = ExternalEntitiesCollection::make(); |
|
21 | |||
22 | 2 | $this->pullProcessor->pull() |
|
23 | 2 | ->each(function ($item) use ($collection) { |
|
24 | 2 | $externalEntity = $this->converter->convert($item); |
|
25 | 2 | if ($externalEntity) { |
|
26 | 2 | $collection->add($externalEntity); |
|
27 | } |
||
28 | 2 | }); |
|
29 | |||
30 | 2 | return $collection; |
|
31 | } |
||
33 |