Passed
Push — developer ( ab47b4...ee9b1a )
by Radosław
18:38
created
modules/Vtiger/uitypes/Text.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
 		$maximumLength = $this->getFieldModel()->getMaxValue();
42 42
 		if ($maximumLength && \App\TextUtils::getTextLength($value, true) > $maximumLength) {
43 43
 			throw new \App\Exceptions\Security('ERR_VALUE_IS_TOO_LONG||' . $this->getFieldModel()->getName() . '||' . $this->getFieldModel()->getModuleName() . '||' . $value, 406);
44
-		} elseif ($value && ($minLength = $this->getFieldModel()->getMinValue()) && \App\TextUtils::getTextLength($value, true) < $minLength){
44
+		} elseif ($value && ($minLength = $this->getFieldModel()->getMinValue()) && \App\TextUtils::getTextLength($value, true) < $minLength) {
45 45
 			throw new \App\Exceptions\Security('ERR_VALUE_IS_TOO_SHORT||' . $this->getFieldModel()->getName() . '||' . $this->getFieldModel()->getModuleName() . '||' . $value, 406);
46 46
 		}
47 47
 		$this->validate[$value] = true;
Please login to merge, or discard this patch.