@@ -45,16 +45,16 @@ |
||
| 45 | 45 | $compiler->addDebugInfo($this) |
| 46 | 46 | ->write('$documentProperties = ') |
| 47 | 47 | ->subcompile($this->getNode('properties')) |
| 48 | - ->raw(';' . PHP_EOL) |
|
| 49 | - ->write('$context[\'phpExcel\'] = new MewesK\TwigExcelBundle\Wrapper\PhpExcelWrapper($context, $this->env);' . PHP_EOL) |
|
| 50 | - ->write('$context[\'phpExcel\']->startDocument($documentProperties);' . PHP_EOL) |
|
| 51 | - ->write('unset($documentProperties);' . PHP_EOL) |
|
| 48 | + ->raw(';'.PHP_EOL) |
|
| 49 | + ->write('$context[\'phpExcel\'] = new MewesK\TwigExcelBundle\Wrapper\PhpExcelWrapper($context, $this->env);'.PHP_EOL) |
|
| 50 | + ->write('$context[\'phpExcel\']->startDocument($documentProperties);'.PHP_EOL) |
|
| 51 | + ->write('unset($documentProperties);'.PHP_EOL) |
|
| 52 | 52 | ->subcompile($this->getNode('body')) |
| 53 | 53 | ->addDebugInfo($this) |
| 54 | - ->write('$context[\'phpExcel\']->endDocument(' . |
|
| 55 | - ($this->preCalculateFormulas ? 'true' : 'false') . ', ' . |
|
| 56 | - ($this->diskCachingDirectory ? '\'' . $this->diskCachingDirectory . '\'' : 'null') . ');' . PHP_EOL) |
|
| 57 | - ->write('unset($context[\'phpExcel\']);' . PHP_EOL); |
|
| 54 | + ->write('$context[\'phpExcel\']->endDocument('. |
|
| 55 | + ($this->preCalculateFormulas ? 'true' : 'false').', '. |
|
| 56 | + ($this->diskCachingDirectory ? '\''.$this->diskCachingDirectory.'\'' : 'null').');'.PHP_EOL) |
|
| 57 | + ->write('unset($context[\'phpExcel\']);'.PHP_EOL); |
|
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | /** |