Completed
Pull Request — master (#11)
by Maksim
01:37
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   +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.