| Conditions | 1 |
| Paths | 1 |
| Total Lines | 23 |
| Code Lines | 21 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 22 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | 3 | public function getConfigTreeBuilder() |
|
| 33 | { |
||
| 34 | 3 | return (new TreeBuilder()) |
|
| 35 | 3 | ->root('anime_db_anime_news_network_browser') |
|
| 36 | 3 | ->children() |
|
| 37 | 3 | ->scalarNode('host') |
|
| 38 | 3 | ->defaultValue('https://cdn.animenewsnetwork.cc') |
|
| 39 | 3 | ->cannotBeEmpty() |
|
| 40 | 3 | ->end() |
|
| 41 | 3 | ->scalarNode('reports') |
|
| 42 | 3 | ->defaultValue('/encyclopedia/reports.xml') |
|
| 43 | 3 | ->cannotBeEmpty() |
|
| 44 | 3 | ->end() |
|
| 45 | 3 | ->scalarNode('details') |
|
| 46 | 3 | ->defaultValue('/encyclopedia/api.xml') |
|
| 47 | 3 | ->cannotBeEmpty() |
|
| 48 | 3 | ->end() |
|
| 49 | 3 | ->scalarNode('client') |
|
| 50 | 3 | ->defaultValue('') |
|
| 51 | 3 | ->cannotBeEmpty() |
|
| 52 | 3 | ->end() |
|
| 53 | 3 | ->end() |
|
| 54 | 3 | ->end() |
|
| 55 | ; |
||
| 58 |