@@ -147,6 +147,6 @@ |
||
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 | } |
@@ -98,11 +98,11 @@ |
||
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 | } |