Completed
Pull Request — master (#11)
by Maksim
01:37
created
src/Traits/MultiUnitSupport.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -346,8 +346,9 @@
 block discarded – undo
346 346
 
347 347
     protected function setMultiUnitFieldUnit($field, AbstractUnit $unit)
348 348
     {
349
-        if(isset($this->{$field.$this->getUnitAttributePostfix()}))
350
-            $this->{$field.$this->getUnitAttributePostfix()} = $unit->getId();
349
+        if(isset($this->{$field.$this->getUnitAttributePostfix()})) {
350
+                    $this->{$field.$this->getUnitAttributePostfix()} = $unit->getId();
351
+        }
351 352
         $this->forgetMultiUnitFieldUnitInput($field);
352 353
     }
353 354
 
Please login to merge, or discard this patch.