| Conditions | 1 |
| Paths | 1 |
| Total Lines | 23 |
| Code Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function getConfigTreeBuilder() |
||
| 23 | { |
||
| 24 | $treeBuilder = new TreeBuilder(); |
||
| 25 | |||
| 26 | $rootNode = $treeBuilder->root('sculpin_twig'); |
||
| 27 | |||
| 28 | $rootNode |
||
| 29 | ->children() |
||
| 30 | ->arrayNode('view_paths') |
||
| 31 | ->prototype('scalar')->end() |
||
| 32 | ->end() |
||
| 33 | ->arrayNode('source_view_paths') |
||
| 34 | ->defaultValue(['_views', '_layouts', '_includes', '_partials']) |
||
| 35 | ->prototype('scalar')->end() |
||
| 36 | ->end() |
||
| 37 | ->arrayNode('extensions') |
||
| 38 | ->defaultValue(['', 'twig', 'html', 'html.twig', 'twig.html']) |
||
| 39 | ->prototype('scalar')->end() |
||
| 40 | ->end() |
||
| 41 | ->end(); |
||
| 42 | |||
| 43 | return $treeBuilder; |
||
| 44 | } |
||
| 45 | } |
||
| 46 |