Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function parse(Twig_Token $token) |
||
23 | { |
||
24 | // parse attributes |
||
25 | $index = new Twig_Node_Expression_Constant(null, $token->getLine()); |
||
26 | if (!$this->parser->getStream()->test(Twig_Token::BLOCK_END_TYPE)) { |
||
27 | $index = $this->parser->getExpressionParser()->parseExpression(); |
||
28 | } |
||
29 | $this->parser->getStream()->expect(Twig_Token::BLOCK_END_TYPE); |
||
30 | |||
31 | // parse body |
||
32 | $body = $this->parseBody(); |
||
33 | |||
34 | // return node |
||
35 | return new XlsRowNode($index, $body, $token->getLine(), $this->getTag()); |
||
36 | } |
||
37 | |||
46 |