| Conditions | 1 |
| Paths | 1 |
| Total Lines | 21 |
| Code Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 18 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | 3 | public function getConfigTreeBuilder() |
|
| 31 | { |
||
| 32 | 3 | return (new TreeBuilder()) |
|
| 33 | 3 | ->root('anime_db_shikimori_browser') |
|
| 34 | 3 | ->children() |
|
| 35 | 3 | ->scalarNode('host') |
|
| 36 | 3 | ->cannotBeEmpty() |
|
| 37 | 3 | ->defaultValue('https://shikimori.org') |
|
| 38 | 3 | ->end() |
|
| 39 | 3 | ->scalarNode('prefix') |
|
| 40 | 3 | ->cannotBeEmpty() |
|
| 41 | 3 | ->defaultValue('/api/') |
|
| 42 | 3 | ->end() |
|
| 43 | 3 | ->scalarNode('client') |
|
| 44 | 3 | ->cannotBeEmpty() |
|
| 45 | 3 | ->isRequired() |
|
| 46 | 3 | ->end() |
|
| 47 | 3 | ->end() |
|
| 48 | 3 | ->end() |
|
| 49 | ; |
||
| 50 | } |
||
| 51 | } |
||
| 52 |