| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | 2 | protected function aggregateNumericData(array $dataList, ScalarValueInterface ...$elements): ?ValueInterface |
|
| 15 | { |
||
| 16 | 2 | $elementIndex = $this->findElementIndex($dataList); |
|
| 17 | 2 | if (isset($elementIndex, $elements[$elementIndex])) { |
|
| 18 | 2 | return $elements[$elementIndex]; |
|
| 19 | } |
||
| 20 | |||
| 21 | // @codeCoverageIgnoreStart |
||
| 22 | throw new Exception\MaxElementNotFoundException($dataList, $elements); |
||
| 23 | // @codeCoverageIgnoreEnd |
||
| 33 |