|
@@ -143,7 +143,7 @@ |
|
|
block discarded – undo |
|
143
|
143
|
if ($type == 'all') |
|
144
|
144
|
return $this->banks->map(fn(BankModel $bankModel) => ['value' => $bankModel->code, 'name' => $bankModel->name]); |
|
145
|
145
|
$type = strtoupper($type); |
|
146
|
|
- return $this->banks->filter(function (BankModel $bankModel) use ($type) { |
|
|
146
|
+ return $this->banks->filter(function(BankModel $bankModel) use ($type) { |
|
147
|
147
|
return match ($type) { |
|
148
|
148
|
'PC' => $bankModel->getPC()->count() > 0, |
|
149
|
149
|
'CC' => $bankModel->getCC()->count() > 0, |
Please login to merge, or discard this patch.