| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 23 | 
| Code Lines | 13 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 0 | 
| CRAP Score | 12 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 25 | public function compile(Compiler $compiler): void | ||
| 26 |     { | ||
| 27 | $compiler->raw( | ||
| 28 | \sprintf( | ||
| 29 |                 '$this->env->getExtension(\'%s\')->%s(', | ||
| 30 | 'Translation\Bundle\Twig\TranslationExtension', | ||
| 31 | 'transchoiceWithDefault' | ||
| 32 | ) | ||
| 33 | ); | ||
| 34 | |||
| 35 | $first = true; | ||
| 36 | /** @var ArrayExpression $node */ | ||
| 37 |         $node = $this->getNode('arguments'); | ||
| 38 |         foreach ($node->getKeyValuePairs() as $pair) { | ||
| 39 |             if (!$first) { | ||
| 40 |                 $compiler->raw(', '); | ||
| 41 | } | ||
| 42 | $first = false; | ||
| 43 | |||
| 44 | $compiler->subcompile($pair['value']); | ||
| 45 | } | ||
| 46 | |||
| 47 |         $compiler->raw(')'); | ||
| 48 | } | ||
| 50 |