Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
44 | public function filterDataToArray(array $data): array |
||
45 | { |
||
46 | foreach ($data as $key => $filterItem) { |
||
47 | if ($filterItem instanceof FilterItemInterface) { |
||
48 | $data[$key] = [ |
||
49 | 'type' => $filterItem->getType(), |
||
50 | 'value' => $filterItem->getValue() |
||
51 | ]; |
||
52 | } |
||
53 | } |
||
54 | |||
55 | return $data; |
||
56 | } |
||
58 |