| Conditions | 5 |
| Paths | 5 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 62 | public function changeCreateAccountFieldSortOrder(array $fields): array |
||
| 63 | { |
||
| 64 | foreach ($fields as $key => $data) { |
||
| 65 | if (in_array('sortOrder', $fields[$key])) { |
||
| 66 | if ($fields[$key]['sortOrder']) { |
||
| 67 | $newSortOrder = $this->config->getSortOrderByFieldCustomer($key); |
||
| 68 | if ($newSortOrder) { |
||
| 69 | $fields[$key]['sortOrder'] = (int) $newSortOrder; |
||
| 70 | } |
||
| 71 | } |
||
| 72 | } |
||
| 73 | } |
||
| 74 | |||
| 75 | return $fields; |
||
| 76 | } |
||
| 78 |