Completed
Push — master ( b73c64...168e7d )
by Maksim
01:25
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
@@ -79,8 +79,9 @@
 block discarded – undo
79 79
             }
80 80
             //prevent saving of unit columns
81 81
             foreach ($model->getUnitConversionUnitColumns() as $unitColumn) {
82
-                if(isset($model->attributes[$unitColumn]))
83
-                    unset($model->attributes[$unitColumn]);
82
+                if(isset($model->attributes[$unitColumn])) {
83
+                                    unset($model->attributes[$unitColumn]);
84
+                }
84 85
             }
85 86
         });
86 87
         static::updating(function ($model) {
Please login to merge, or discard this patch.