Completed
Push — master ( a2f586...4bbfd3 )
by Maksim
01:10
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
@@ -204,8 +204,9 @@
 block discarded – undo
204 204
                         }
205 205
                     }
206 206
                 }
207
-                if(is_string($unit))
208
-                    throw new NotSupportedMultiUnitField($field);
207
+                if(is_string($unit)) {
208
+                                    throw new NotSupportedMultiUnitField($field);
209
+                }
209 210
                 $existingConversionData = $this->getMultiUnitExistingConversionData($field);
210 211
                 if (!is_null($existingConversionData) && !is_null($existingConversionData->{$unit->getSymbol()})) {
211 212
                     return $existingConversionData->{$unit->getSymbol()};
Please login to merge, or discard this patch.