| Conditions | 2 |
| Paths | 1 |
| Total Lines | 28 |
| Code Lines | 22 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 23 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | 41 | protected function _check(NodeDefinition $node): NodeDefinition |
|
| 38 | { |
||
| 39 | $node = $node |
||
| 40 | 41 | ->children() |
|
| 41 | 41 | ->arrayNode('check') |
|
| 42 | 41 | ->children() |
|
| 43 | 41 | ->arrayNode('files') |
|
| 44 | 41 | ->isRequired() |
|
| 45 | 41 | ->beforeNormalization() |
|
| 46 | 41 | ->ifString() |
|
| 47 | 41 | ->then(function ($value) { |
|
| 48 | 2 | if(is_string($value)) { |
|
| 49 | 2 | $value = [$value]; |
|
| 50 | } |
||
| 51 | 2 | return $value; |
|
| 52 | 41 | }) |
|
| 53 | 41 | ->end() |
|
| 54 | 41 | ->prototype('scalar')->end() |
|
| 55 | 41 | ->end() |
|
| 56 | 41 | ->end() |
|
| 57 | 41 | ->end() |
|
| 58 | 41 | ->end(); |
|
| 59 | |||
| 60 | 41 | $this->_group($node); |
|
| 61 | 41 | $this->_tags($node); |
|
| 62 | 41 | $this->_label($node); |
|
| 63 | |||
| 64 | 41 | return $node; |
|
| 65 | } |
||
| 67 |