Conditions | 1 |
Paths | 1 |
Total Lines | 20 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 15 |
CRAP Score | 1 |
Changes | 2 | ||
Bugs | 0 | Features | 2 |
1 | <?php |
||
31 | 5 | public function getConfigTreeBuilder() |
|
32 | { |
||
33 | 5 | $treeBuilder = new TreeBuilder(); |
|
34 | |||
35 | 5 | $rootNode = $treeBuilder->root(SymplifyDefaultAutowireBundle::ALIAS); |
|
36 | |||
37 | 5 | $rootNode->children() |
|
38 | 5 | ->arrayNode('autowire_types') |
|
39 | 5 | ->beforeNormalization() |
|
40 | 5 | ->ifArray() |
|
41 | 5 | ->then(function ($value) { |
|
42 | 2 | return array_merge($this->defaultAutowireTypes, $value); |
|
43 | 5 | }) |
|
44 | 5 | ->end() |
|
45 | 5 | ->defaultValue($this->defaultAutowireTypes) |
|
46 | 5 | ->prototype('scalar') |
|
47 | 5 | ->end(); |
|
48 | |||
49 | 5 | return $treeBuilder; |
|
50 | } |
||
51 | } |
||
52 |