| Conditions | 1 |
| Paths | 1 |
| Total Lines | 22 |
| Code Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function configure(ArrayNodeDefinition $definition) |
||
| 22 | { |
||
| 23 | $definition |
||
| 24 | ->children() |
||
| 25 | ->arrayNode(self::CONFIGURATION_KEY) |
||
| 26 | ->prototype('array') |
||
| 27 | ->beforeNormalization() |
||
| 28 | ->ifString() |
||
| 29 | ->then(function ($v) { |
||
| 30 | return [ |
||
| 31 | 'command' => $v, |
||
| 32 | ]; |
||
| 33 | }) |
||
| 34 | ->end() |
||
| 35 | ->children() |
||
| 36 | ->scalarNode('command') |
||
| 37 | ->isRequired() |
||
| 38 | ->end() |
||
| 39 | ->end() |
||
| 40 | ->end() |
||
| 41 | ->end() |
||
| 42 | ->end(); |
||
| 43 | } |
||
| 72 |