|
@@ -18,17 +18,17 @@ |
|
|
block discarded – undo |
|
18
|
18
|
->write("ob_start();\n") |
|
19
|
19
|
->write('$documentProperties = ') |
|
20
|
20
|
->subcompile($this->getNode('properties')) |
|
21
|
|
- ->raw(';'.PHP_EOL) |
|
22
|
|
- ->write(self::CODE_INSTANCE.' = new '.PhpSpreadsheetWrapper::class.'($context, $this->env);'.PHP_EOL) |
|
23
|
|
- ->write(self::CODE_INSTANCE.'->startDocument($documentProperties);'.PHP_EOL) |
|
24
|
|
- ->write('unset($documentProperties);'.PHP_EOL) |
|
|
21
|
+ ->raw(';' . PHP_EOL) |
|
|
22
|
+ ->write(self::CODE_INSTANCE . ' = new ' . PhpSpreadsheetWrapper::class . '($context, $this->env);' . PHP_EOL) |
|
|
23
|
+ ->write(self::CODE_INSTANCE . '->startDocument($documentProperties);' . PHP_EOL) |
|
|
24
|
+ ->write('unset($documentProperties);' . PHP_EOL) |
|
25
|
25
|
->subcompile($this->getNode('body')) |
|
26
|
26
|
->addDebugInfo($this) |
|
27
|
27
|
->write("ob_end_clean();\n") |
|
28
|
|
- ->write(self::CODE_INSTANCE.'->endDocument('. |
|
29
|
|
- ($this->getAttribute('preCalculateFormulas') ? 'true' : 'false').', '. |
|
30
|
|
- ($this->getAttribute('diskCachingDirectory') ? '\''.$this->getAttribute('diskCachingDirectory').'\'' : 'null').');'.PHP_EOL) |
|
31
|
|
- ->write('unset('.self::CODE_INSTANCE.');'.PHP_EOL); |
|
|
28
|
+ ->write(self::CODE_INSTANCE . '->endDocument(' . |
|
|
29
|
+ ($this->getAttribute('preCalculateFormulas') ? 'true' : 'false') . ', ' . |
|
|
30
|
+ ($this->getAttribute('diskCachingDirectory') ? '\'' . $this->getAttribute('diskCachingDirectory') . '\'' : 'null') . ');' . PHP_EOL) |
|
|
31
|
+ ->write('unset(' . self::CODE_INSTANCE . ');' . PHP_EOL); |
|
32
|
32
|
} |
|
33
|
33
|
|
|
34
|
34
|
/** |
Please login to merge, or discard this patch.