| Conditions | 1 |
| Paths | 1 |
| Total Lines | 22 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 16 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | 2 | public function getConfigTreeBuilder() |
|
| 13 | { |
||
| 14 | 2 | $treeBuilder = new TreeBuilder(); |
|
|
|
|||
| 15 | 2 | $rootNode = $treeBuilder->root('loevgaard_consignor_shipment_server'); |
|
| 16 | |||
| 17 | $rootNode |
||
| 18 | 2 | ->children() |
|
| 19 | 2 | ->scalarNode('actor') |
|
| 20 | 2 | ->info('The consignor actor') |
|
| 21 | 2 | ->isRequired() |
|
| 22 | 2 | ->cannotBeEmpty() |
|
| 23 | 2 | ->end() |
|
| 24 | 2 | ->scalarNode('key') |
|
| 25 | 2 | ->info('The corresponding consignor key') |
|
| 26 | 2 | ->isRequired() |
|
| 27 | 2 | ->cannotBeEmpty() |
|
| 28 | 2 | ->end() |
|
| 29 | 2 | ->end() |
|
| 30 | ; |
||
| 31 | |||
| 32 | 2 | return $treeBuilder; |
|
| 33 | } |
||
| 34 | } |
||
| 35 |
This check looks for function calls that miss required arguments.