Passed
Push — master ( cecbb5...9310de )
by Dennis
11:42 queued 08:16
created
src/Packages/Bank.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -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.