| Conditions | 3 |
| Paths | 4 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php declare(strict_types=1); |
||
| 19 | public function addHosts(array $hosts): void |
||
| 20 | { |
||
| 21 | $siteId = $this->getSiteId(); |
||
| 22 | if (!isset($this->configurator->registeredVars['MediaEmbed.sites'][$siteId])) |
||
| 23 | { |
||
| 24 | $this->configurator->MediaEmbed->add($siteId); |
||
| 25 | } |
||
| 26 | |||
| 27 | foreach ($hosts as $host) |
||
| 28 | { |
||
| 29 | $host = strtolower($host); |
||
| 30 | $this->configurator->registeredVars['MediaEmbed.hosts'][$host] = $siteId; |
||
| 31 | } |
||
| 57 | } |