| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | 2 | public function getConfigTreeBuilder() |
|
| 19 | { |
||
| 20 | 2 | $treeBuilder = new TreeBuilder(); |
|
| 21 | 2 | $rootNode = $treeBuilder->root('mewes_k_twig_spreadsheet'); |
|
| 22 | |||
| 23 | $rootNode |
||
| 24 | 2 | ->children() |
|
| 25 | 2 | ->booleanNode('pre_calculate_formulas')->defaultTrue()->info('Pre-calculating formulas can be slow in certain cases. Disabling this option can improve the performance but the resulting documents won\'t show the result of any formulas when opened in a external spreadsheet software.')->end() |
|
| 26 | 2 | ->scalarNode('disk_caching_directory')->defaultNull()->info('Using disk caching can improve memory consumption by writing data to disk temporary. Works only for .XLSX and .ODS documents.')->example('/tmp')->end() |
|
| 27 | 2 | ->end(); |
|
| 28 | |||
| 29 | 2 | return $treeBuilder; |
|
| 30 | } |
||
| 31 | } |
||
| 32 |