Passed
Push — master ( 426355...de4e88 )
by Dennis
03:38
created
src/Packages/Bank.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -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.
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.