@@ -219,13 +219,14 @@ |
||
| 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 | |