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