| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 24 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 5 | ||
| Bugs | 1 | Features | 1 | 
| 1 | <?php  | 
            ||
| 24 | public function parse(Twig_Token $token)  | 
            ||
| 25 |     { | 
            ||
| 26 | /**  | 
            ||
| 27 | * @var Twig_Node_BlockReference $blockReference  | 
            ||
| 28 | */  | 
            ||
| 29 | $blockReference = parent::parse($token);  | 
            ||
| 30 | /**  | 
            ||
| 31 | * @var Twig_Node_Block $block  | 
            ||
| 32 | */  | 
            ||
| 33 |         $block = $this->parser->getBlock($blockReference->getAttribute('name')); | 
            ||
| 34 | |||
| 35 | // prepare block  | 
            ||
| 36 | NodeHelper::removeTextNodesRecursively($block, $this->parser);  | 
            ||
| 37 | NodeHelper::fixMacroCallsRecursively($block);  | 
            ||
| 38 | |||
| 39 | // mark for syntax checks  | 
            ||
| 40 |         foreach ($block->getIterator() as $node) { | 
            ||
| 41 |             if ($node instanceof Twig_Node_Block) { | 
            ||
| 42 |                 $node->setAttribute('twigExcelBundle', true); | 
            ||
| 43 | }  | 
            ||
| 44 | }  | 
            ||
| 45 | |||
| 46 | return $blockReference;  | 
            ||
| 47 | }  | 
            ||
| 48 | |||
| 66 |