| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 14 |
| CRAP Score | 1 |
| 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 | ->integerNode('warningThreshold')->defaultValue(70)->end() |
|
| 44 | 41 | ->integerNode('criticalThreshold')->defaultValue(90)->end() |
|
| 45 | 41 | ->scalarNode('path')->defaultValue('/')->end() |
|
| 46 | 41 | ->end() |
|
| 47 | 41 | ->end() |
|
| 48 | 41 | ->end(); |
|
| 49 | |||
| 50 | 41 | $this->_group($node); |
|
| 51 | 41 | $this->_tags($node); |
|
| 52 | 41 | $this->_label($node); |
|
| 53 | |||
| 54 | 41 | return $node; |
|
| 55 | } |
||
| 57 |