| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | 2 | protected function findNumericElements(ValueInterface $value): array |
|
| 18 | { |
||
| 19 | 2 | $elements = []; |
|
| 20 | 2 | $uniqueDataList = []; |
|
| 21 | 2 | foreach (parent::findNumericElements($value) as $element) { |
|
| 22 | 2 | if (in_array($element->getData(), $uniqueDataList, true)) { |
|
| 23 | 1 | continue; |
|
| 24 | } |
||
| 25 | 2 | $uniqueDataList[] = $element->getData(); |
|
| 26 | 2 | $elements[] = $element; |
|
| 27 | } |
||
| 28 | |||
| 29 | 2 | return $elements; |
|
| 30 | } |
||
| 32 |