@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | public function defaultAction($templateName) |
22 | 22 | { |
23 | 23 | return $this->render( |
24 | - '@Test/Default/' . $templateName . '.twig', |
|
24 | + '@Test/Default/'.$templateName.'.twig', |
|
25 | 25 | [ |
26 | 26 | 'data' => [ |
27 | 27 | ['name' => 'Everette Grim', 'salary' => 5458.0], |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | { |
59 | 59 | $response = new Response( |
60 | 60 | $this->render( |
61 | - '@Test/Default/' . $templateName . '.twig', |
|
61 | + '@Test/Default/'.$templateName.'.twig', |
|
62 | 62 | [ |
63 | 63 | 'data' => [ |
64 | 64 | ['name' => 'Everette Grim', 'salary' => 5458.0], |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | |
27 | 27 | $fs = new Filesystem(); |
28 | 28 | if (!$fs->isAbsolutePath($config)) { |
29 | - $config = __DIR__ . '/config/' .$config; |
|
29 | + $config = __DIR__.'/config/'.$config; |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | if (!file_exists($config)) { |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | */ |
65 | 65 | public function getCacheDir() |
66 | 66 | { |
67 | - return __DIR__ . '/../../tmp/cache'; |
|
67 | + return __DIR__.'/../../tmp/cache'; |
|
68 | 68 | } |
69 | 69 | |
70 | 70 | /** |
@@ -72,6 +72,6 @@ discard block |
||
72 | 72 | */ |
73 | 73 | public function getLogDir() |
74 | 74 | { |
75 | - return __DIR__ . '/../../tmp/logs'; |
|
75 | + return __DIR__.'/../../tmp/logs'; |
|
76 | 76 | } |
77 | 77 | } |
@@ -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 | /** |