| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 38 | public function parse($token) |
||
| 39 | { |
||
| 40 | $lineno = $token->getLine(); |
||
| 41 | $stream = $this->parser->getStream(); |
||
| 42 | $nodes = [ |
||
| 43 | 'templateName' => $this->parser->getExpressionParser()->parseExpression(), |
||
| 44 | ]; |
||
| 45 | $stream->expect(Twig_Token::BLOCK_END_TYPE); |
||
| 46 | $nodes['body'] = $this->parser->subparse([$this, 'decideCommentsEnd'], true); |
||
| 47 | $stream->expect(Twig_Token::BLOCK_END_TYPE); |
||
| 48 | |||
| 49 | return new CommentsNode($nodes, [], $lineno, $this->getTag()); |
||
| 50 | } |
||
| 63 |