| Conditions | 1 |
| Paths | 1 |
| Total Lines | 39 |
| Code Lines | 36 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 36 |
| CRAP Score | 1 |
| Changes | 5 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 35 | 3 | public function getConfigTreeBuilder() |
|
| 36 | { |
||
| 37 | 3 | return (new TreeBuilder()) |
|
| 38 | 3 | ->root('anime_db_ani_db_browser') |
|
| 39 | 3 | ->children() |
|
| 40 | 3 | ->arrayNode('api') |
|
| 41 | 3 | ->addDefaultsIfNotSet() |
|
| 42 | 3 | ->children() |
|
| 43 | 3 | ->scalarNode('host') |
|
| 44 | 3 | ->defaultValue('http://api.anidb.net:9001') |
|
| 45 | 3 | ->cannotBeEmpty() |
|
| 46 | 3 | ->end() |
|
| 47 | 3 | ->scalarNode('prefix') |
|
| 48 | 3 | ->defaultValue('/httpapi/') |
|
| 49 | 3 | ->cannotBeEmpty() |
|
| 50 | 3 | ->end() |
|
| 51 | 3 | ->scalarNode('protover') |
|
| 52 | 3 | ->defaultValue('1') |
|
| 53 | 3 | ->cannotBeEmpty() |
|
| 54 | 3 | ->end() |
|
| 55 | 3 | ->end() |
|
| 56 | 3 | ->end() |
|
| 57 | 3 | ->arrayNode('app') |
|
| 58 | 3 | ->children() |
|
| 59 | 3 | ->scalarNode('version') |
|
| 60 | 3 | ->cannotBeEmpty() |
|
| 61 | 3 | ->end() |
|
| 62 | 3 | ->scalarNode('client') |
|
| 63 | 3 | ->cannotBeEmpty() |
|
| 64 | 3 | ->end() |
|
| 65 | 3 | ->scalarNode('code') |
|
| 66 | 3 | ->cannotBeEmpty() |
|
| 67 | 3 | ->end() |
|
| 68 | 3 | ->end() |
|
| 69 | 3 | ->end() |
|
| 70 | 3 | ->end() |
|
| 71 | 3 | ->end() |
|
| 72 | ; |
||
| 73 | } |
||
| 74 | } |
||
| 75 |