| Conditions | 3 | 
| Paths | 2 | 
| Total Lines | 19 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 33 | public function render(string $eventName, TemplateBlock $templateBlock, array $context = []): string  | 
            ||
| 34 |     { | 
            ||
| 35 | $renderedBlock = '';  | 
            ||
| 36 | |||
| 37 |         if ($this->debug && strrpos($templateBlock->getTemplate(), '.html.twig') !== false) { | 
            ||
| 38 | $renderedBlock .= sprintf(  | 
            ||
| 39 | '<!-- event name: "%s", block name: "%s", template: "%s", priority: %d -->',  | 
            ||
| 40 | $eventName,  | 
            ||
| 41 | $templateBlock->getName(),  | 
            ||
| 42 | $templateBlock->getTemplate(),  | 
            ||
| 43 | $templateBlock->getPriority()  | 
            ||
| 44 | );  | 
            ||
| 45 | $renderedBlock .= "\n";  | 
            ||
| 46 | }  | 
            ||
| 47 | |||
| 48 | $renderedBlock .= $this->twig->render($templateBlock->getTemplate(), array_replace($templateBlock->getContext(), $context));  | 
            ||
| 49 | |||
| 50 | return $renderedBlock;  | 
            ||
| 51 | }  | 
            ||
| 52 | }  | 
            ||
| 53 |