Conditions | 3 |
Paths | 3 |
Total Lines | 6 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
41 | 2 | public function updateEmbeds(array $embeds): void |
|
42 | { |
||
43 | 2 | $extractors = $this->embedLib->getMulti(...\array_map(static fn (Embed $embed) => $embed->getUrl(), $embeds)); |
|
44 | 2 | foreach ($extractors as $i => $extractor) { |
|
45 | 2 | if ($extractor->code !== null) { |
|
46 | 2 | $embeds[$i]->setEmbedCode($extractor->code->html); |
|
47 | } |
||
51 |