| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php declare(strict_types=1); |
||
| 16 | public function addHosts(array $hosts): void |
||
| 17 | { |
||
| 18 | parent::addHosts($hosts); |
||
| 19 | |||
| 20 | if (!isset($this->builder)) |
||
| 21 | { |
||
| 22 | $this->builder = new Builder; |
||
| 23 | } |
||
| 24 | |||
| 25 | $siteId = $this->getSiteId(); |
||
| 26 | $hosts = $this->getHosts(); |
||
| 27 | |||
| 28 | $this->configurator->tags[$siteId]->attributes['embedder']->filterChain[0]->setRegexp( |
||
| 29 | '/^(?:[-\w]*\.)*' . $this->builder->build($hosts) . '$/' |
||
| 30 | ); |
||
| 37 | } |