@@ -32,12 +32,10 @@ |
||
| 32 | 32 | if (($node instanceof Twig_Node_Block || $node instanceof Twig_Node_Macro) && !$node->hasAttribute('twigExcelBundle') && $this->checkContainsXlsNode($node)) { |
| 33 | 33 | if ($node instanceof Twig_Node_Block) { |
| 34 | 34 | throw new Twig_Error_Syntax('Block tags do not work together with Twig tags provided by TwigExcelBundle. Please use \'xlsblock\' instead.'); |
| 35 | - } |
|
| 36 | - elseif ($node instanceof Twig_Node_Macro) { |
|
| 35 | + } elseif ($node instanceof Twig_Node_Macro) { |
|
| 37 | 36 | throw new Twig_Error_Syntax('Macro tags do not work together with Twig tags provided by TwigExcelBundle. Please use \'xlsmacro\' instead.'); |
| 38 | 37 | } |
| 39 | - } |
|
| 40 | - elseif ($node instanceof XlsNode) { |
|
| 38 | + } elseif ($node instanceof XlsNode) { |
|
| 41 | 39 | /** |
| 42 | 40 | * @var XlsNode $node |
| 43 | 41 | */ |
@@ -20,8 +20,8 @@ |
||
| 20 | 20 | */ |
| 21 | 21 | protected function parseBody() |
| 22 | 22 | { |
| 23 | - $body = $this->parser->subparse(function (Twig_Token $token) { |
|
| 24 | - return $token->test('end' . $this->getTag()); |
|
| 23 | + $body = $this->parser->subparse(function(Twig_Token $token) { |
|
| 24 | + return $token->test('end'.$this->getTag()); |
|
| 25 | 25 | }, |
| 26 | 26 | true); |
| 27 | 27 | $this->parser->getStream()->expect(Twig_Token::BLOCK_END_TYPE); |
@@ -20,7 +20,8 @@ |
||
| 20 | 20 | */ |
| 21 | 21 | protected function parseBody() |
| 22 | 22 | { |
| 23 | - $body = $this->parser->subparse(function (Twig_Token $token) { |
|
| 23 | + $body = $this->parser->subparse(function (Twig_Token $token) |
|
| 24 | + { |
|
| 24 | 25 | return $token->test('end' . $this->getTag()); |
| 25 | 26 | }, |
| 26 | 27 | true); |