| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2.0116 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php declare(strict_types = 1); |
||
| 33 | 1 | public function visit(AbstractNode $node, ?AbstractVisitor $subVisitor = null, ?array $options = null): string |
|
| 34 | { |
||
| 35 | /** @var Term $termNode */ |
||
| 36 | 1 | $termNode = $node; |
|
| 37 | /** @var RangeToken $token */ |
||
| 38 | 1 | $token = $termNode->getToken(); |
|
| 39 | |||
| 40 | 1 | $domain = $token->getDomain(); |
|
| 41 | 1 | if ($domain === '') { |
|
| 42 | throw new LogicException('Missing required domain'); |
||
| 43 | } |
||
| 44 | |||
| 45 | 1 | return '(' . $this->filterResolver->resolve($domain, $token) . ')'; |
|
| 46 | } |
||
| 49 |