Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
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 | if (!isset($this->configurator->registeredVars['MediaEmbed.sites']['mastodon'])) |
||
28 | { |
||
29 | $this->configurator->MediaEmbed->add('mastodon'); |
||
30 | } |
||
31 | |||
32 | $host = strtolower($host); |
||
33 | $this->configurator->registeredVars['MediaEmbed.hosts'][$host] = 'mastodon'; |
||
34 | } |
||
35 | } |