| 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 |
||
| 40 | 2 | public function updateEmbeds(array $embeds): void |
|
| 41 | { |
||
| 42 | 2 | $extractors = $this->embedLib->getMulti(...\array_map(static fn (Embed $embed) => $embed->getUrl(), $embeds)); |
|
| 43 | 2 | foreach ($extractors as $i => $extractor) { |
|
| 44 | 2 | if ($extractor->code !== null) { |
|
| 45 | 2 | $embeds[$i]->setEmbedCode($extractor->code->html); |
|
| 46 | } |
||
| 50 |