Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function parse( Twig_Token $token ) { |
||
16 | |||
17 | $nodes = array(); |
||
18 | $parser = $this->parser; |
||
19 | $stream = $parser->getStream(); |
||
20 | |||
21 | $stream->expect( Twig_Token::BLOCK_END_TYPE ); |
||
22 | $nodes['callback'] = $parser->subparse( array( $this, 'decide_comments_end' ), true ); |
||
23 | $stream->expect( Twig_Token::BLOCK_END_TYPE ); |
||
24 | |||
25 | return new Comments_Node( $nodes, array(), $token->getLine(), $this->getTag() ); |
||
26 | } |
||
44 | } |