@@ 302-307 (lines=6) @@ | ||
299 | $attributeData['description'][] = Description::parse($rule)->with($this->fancyImplode($parameters, ', ', ' or '))->getDescription(); |
|
300 | $attributeData['value'] = $faker->word; |
|
301 | break; |
|
302 | case 'min': |
|
303 | $attributeData['description'][] = Description::parse($rule)->with($parameters)->getDescription(); |
|
304 | if (Arr::get($attributeData, 'type') === 'numeric' || Arr::get($attributeData, 'type') === 'integer') { |
|
305 | $attributeData['value'] = $faker->numberBetween($parameters[0]); |
|
306 | } |
|
307 | break; |
|
308 | case 'max': |
|
309 | $attributeData['description'][] = Description::parse($rule)->with($parameters)->getDescription(); |
|
310 | if (Arr::get($attributeData, 'type') === 'numeric' || Arr::get($attributeData, 'type') === 'integer') { |
|
@@ 308-313 (lines=6) @@ | ||
305 | $attributeData['value'] = $faker->numberBetween($parameters[0]); |
|
306 | } |
|
307 | break; |
|
308 | case 'max': |
|
309 | $attributeData['description'][] = Description::parse($rule)->with($parameters)->getDescription(); |
|
310 | if (Arr::get($attributeData, 'type') === 'numeric' || Arr::get($attributeData, 'type') === 'integer') { |
|
311 | $attributeData['value'] = $faker->numberBetween(0, $parameters[0]); |
|
312 | } |
|
313 | break; |
|
314 | case 'between': |
|
315 | if (! isset($attributeData['type'])) { |
|
316 | $attributeData['type'] = 'numeric'; |