Completed
Push — master ( 5d0f9f...7d804c )
by Maksim
12:58
created
src/Traits/MultiUnitSupport.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -166,7 +166,7 @@
 block discarded – undo
166 166
     }
167 167
 
168 168
     /**
169
-     * @param                   $field
169
+     * @param                   string $field
170 170
      * @param AbstractUnit|null $unit
171 171
      *
172 172
      * @throws NotSupportedMultiUnitField
Please login to merge, or discard this patch.
Braces   +7 added lines, -6 removed lines patch added patch discarded remove patch
@@ -219,13 +219,14 @@
 block discarded – undo
219 219
                     break;
220 220
                 }
221 221
             }
222
-            if($found)
223
-                $this->multiUnitSelectedUnits[$field] = $unitClass;
224
-            else
225
-                throw new NotSupportedMultiUnitFieldUnit($field, $unit);
222
+            if($found) {
223
+                            $this->multiUnitSelectedUnits[$field] = $unitClass;
224
+            } else {
225
+                            throw new NotSupportedMultiUnitFieldUnit($field, $unit);
226
+            }
227
+        } else {
228
+                    throw new NotSupportedMultiUnitField($field);
226 229
         }
227
-        else
228
-            throw new NotSupportedMultiUnitField($field);
229 230
     }
230 231
 
231 232
 
Please login to merge, or discard this patch.