| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php declare(strict_types=1); |
||
| 25 | public function addHost(string $host): void |
||
| 26 | { |
||
| 27 | $siteId = $this->getSiteId(); |
||
| 28 | if (!isset($this->configurator->registeredVars['MediaEmbed.sites'][$siteId])) |
||
| 29 | { |
||
| 30 | $this->configurator->MediaEmbed->add($siteId); |
||
| 31 | } |
||
| 32 | |||
| 33 | $host = strtolower($host); |
||
| 34 | $this->configurator->registeredVars['MediaEmbed.hosts'][$host] = $siteId; |
||
| 35 | } |
||
| 38 | } |