Completed
Pull Request — developer (#8724)
by Sławomir
30:30 queued 13:32
created
modules/Vtiger/uitypes/Currency.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -147,6 +147,6 @@
 block discarded – undo
147 147
 		if ($max > 9999999) {
148 148
 			$max = 9999999;
149 149
 		}
150
-		return \App\Fields\Currency::formatToDb(random_int($min, (int)$max - 1) . \App\User::getCurrentUserModel()->getDetail('currency_decimal_separator') . random_int(0, 9) . random_int(0, 9));
150
+		return \App\Fields\Currency::formatToDb(random_int($min, (int) $max - 1) . \App\User::getCurrentUserModel()->getDetail('currency_decimal_separator') . random_int(0, 9) . random_int(0, 9));
151 151
 	}
152 152
 }
Please login to merge, or discard this patch.
modules/Vtiger/uitypes/Integer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -98,11 +98,11 @@
 block discarded – undo
98 98
 		$min = 0;
99 99
 		$max = $this->getFieldModel()->get('maximumlength');
100 100
 		if (strpos($max, ',')) {
101
-			$max = (int)explode(',', $max)[1];
101
+			$max = (int) explode(',', $max)[1];
102 102
 		}
103 103
 		if ($max > 999999 || $max < 0) {
104 104
 			$max = 999999;
105 105
 		}
106
-		return \App\Fields\Integer::formatToDb(random_int($min, (int)$max));
106
+		return \App\Fields\Integer::formatToDb(random_int($min, (int) $max));
107 107
 	}
108 108
 }
Please login to merge, or discard this patch.