|
@@ 247-250 (lines=4) @@
|
| 244 |
|
case 'alpha_num': |
| 245 |
|
$attributeData['description'][] = Description::parse($rule)->getDescription(); |
| 246 |
|
break; |
| 247 |
|
case 'in': |
| 248 |
|
$attributeData['description'][] = Description::parse($rule)->with($this->fancyImplode($parameters, ', ', ' or '))->getDescription(); |
| 249 |
|
$attributeData['value'] = $faker->randomElement($parameters); |
| 250 |
|
break; |
| 251 |
|
case 'not_in': |
| 252 |
|
$attributeData['description'][] = Description::parse($rule)->with($this->fancyImplode($parameters, ', ', ' or '))->getDescription(); |
| 253 |
|
$attributeData['value'] = $faker->word; |
|
@@ 251-254 (lines=4) @@
|
| 248 |
|
$attributeData['description'][] = Description::parse($rule)->with($this->fancyImplode($parameters, ', ', ' or '))->getDescription(); |
| 249 |
|
$attributeData['value'] = $faker->randomElement($parameters); |
| 250 |
|
break; |
| 251 |
|
case 'not_in': |
| 252 |
|
$attributeData['description'][] = Description::parse($rule)->with($this->fancyImplode($parameters, ', ', ' or '))->getDescription(); |
| 253 |
|
$attributeData['value'] = $faker->word; |
| 254 |
|
break; |
| 255 |
|
case 'min': |
| 256 |
|
$attributeData['description'][] = Description::parse($rule)->with($parameters)->getDescription(); |
| 257 |
|
if (Arr::get($attributeData, 'type') === 'numeric' || Arr::get($attributeData, 'type') === 'integer') { |