| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | public function parse(Twig_Token $token) |
||
| 42 | { |
||
| 43 | // parse attributes |
||
| 44 | $properties = $this->parseProperties($token); |
||
| 45 | $this->parser->getStream()->expect(Twig_Token::BLOCK_END_TYPE); |
||
| 46 | |||
| 47 | // parse body |
||
| 48 | $body = $this->parseBody(); |
||
| 49 | NodeHelper::removeTextNodesRecursively($body, $this->parser); |
||
| 50 | NodeHelper::fixMacroCallsRecursively($body); |
||
| 51 | |||
| 52 | // return node |
||
| 53 | return new XlsDocumentNode($properties, $body, $token->getLine(), $this->getTag(), $this->preCalculateFormulas, $this->diskCachingDirectory); |
||
| 54 | } |
||
| 55 | |||
| 64 |