| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | 486 | public function addPlaceholder(SourceEvent $event) |
|
| 27 | { |
||
| 28 | 486 | $source = $event->getTemplate(); |
|
| 29 | 486 | $format = $this->placeholderFormat; |
|
| 30 | |||
| 31 | $source = $this->processTwig($source, function ($twig) use ($format) { |
||
| 32 | 109 | return sprintf($format, htmlspecialchars($twig, ENT_COMPAT, 'UTF-8')); |
|
| 33 | 486 | }); |
|
| 34 | |||
| 35 | 486 | $event->setTemplate($source); |
|
| 36 | 486 | } |
|
| 37 | |||
| 53 |