|
@@ -140,8 +140,9 @@ |
|
|
block discarded – undo |
|
140
|
140
|
*/ |
|
141
|
141
|
public function getOptions(string $type = 'all'): Collection |
|
142
|
142
|
{ |
|
143
|
|
- if ($type == 'all') |
|
144
|
|
- return $this->banks->map(fn(BankModel $bankModel) => ['value' => $bankModel->code, 'name' => $bankModel->name]); |
|
|
143
|
+ if ($type == 'all') { |
|
|
144
|
+ return $this->banks->map(fn(BankModel $bankModel) => ['value' => $bankModel->code, 'name' => $bankModel->name]); |
|
|
145
|
+ } |
|
145
|
146
|
$type = strtoupper($type); |
|
146
|
147
|
return $this->banks->filter(function (BankModel $bankModel) use ($type) { |
|
147
|
148
|
return match ($type) { |
Please login to merge, or discard this patch.