@@ 65-79 (lines=15) @@ | ||
62 | * |
|
63 | * @return array |
|
64 | */ |
|
65 | public function toOptionArray() |
|
66 | { |
|
67 | $aOptions = []; |
|
68 | foreach ($this->aKlarnaCountries as $sCountryCode) { |
|
69 | $sName = $this->countryHelper->getCountryNameByIso2($sCountryCode); |
|
70 | if ($sName) { |
|
71 | $aOptions[$sName] = [ |
|
72 | 'value' => $sCountryCode, |
|
73 | 'label' => $sName, |
|
74 | ]; |
|
75 | } |
|
76 | } |
|
77 | ksort($aOptions); |
|
78 | return $aOptions; |
|
79 | } |
|
80 | } |
|
81 |
@@ 69-83 (lines=15) @@ | ||
66 | * |
|
67 | * @return array |
|
68 | */ |
|
69 | public function toOptionArray() |
|
70 | { |
|
71 | $aOptions = []; |
|
72 | foreach ($this->aSepaCountries as $sCountryCode) { |
|
73 | $sName = $this->countryHelper->getCountryNameByIso2($sCountryCode); |
|
74 | if ($sName) { |
|
75 | $aOptions[$sName] = [ |
|
76 | 'value' => $sCountryCode, |
|
77 | 'label' => $sName, |
|
78 | ]; |
|
79 | } |
|
80 | } |
|
81 | ksort($aOptions); |
|
82 | return $aOptions; |
|
83 | } |
|
84 | } |
|
85 |