@@ -143,7 +143,7 @@ |
||
| 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, |
@@ -140,8 +140,9 @@ |
||
| 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) { |