| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | 3 | public function getConfigTreeBuilder() |
|
| 20 | { |
||
| 21 | 3 | $treeBuilder = new TreeBuilder(); |
|
| 22 | 3 | $rootNode = $treeBuilder->root('mbarbey_u2f_security'); |
|
| 23 | |||
| 24 | $rootNode |
||
| 25 | 3 | ->children() |
|
| 26 | 3 | ->scalarNode('authentication_route') |
|
| 27 | 3 | ->isRequired() |
|
| 28 | 3 | ->cannotBeEmpty() |
|
| 29 | 3 | ->end() |
|
| 30 | 3 | ->arrayNode('whitelist_routes')->scalarPrototype()->end() |
|
| 31 | 3 | ->end() |
|
| 32 | ; |
||
| 33 | |||
| 34 | 3 | return $treeBuilder; |
|
| 35 | } |
||
| 36 | } |