|
@@ 447-450 (lines=4) @@
|
| 444 |
|
case 'alpha_num': |
| 445 |
|
$attributeData['description'][] = Description::parse($rule)->getDescription(); |
| 446 |
|
break; |
| 447 |
|
case 'in': |
| 448 |
|
$attributeData['description'][] = Description::parse($rule)->with($this->fancyImplode($parameters, ', ', ' or '))->getDescription(); |
| 449 |
|
$attributeData['value'] = $faker->randomElement($parameters); |
| 450 |
|
break; |
| 451 |
|
case 'not_in': |
| 452 |
|
$attributeData['description'][] = Description::parse($rule)->with($this->fancyImplode($parameters, ', ', ' or '))->getDescription(); |
| 453 |
|
$attributeData['value'] = $faker->word; |
|
@@ 451-454 (lines=4) @@
|
| 448 |
|
$attributeData['description'][] = Description::parse($rule)->with($this->fancyImplode($parameters, ', ', ' or '))->getDescription(); |
| 449 |
|
$attributeData['value'] = $faker->randomElement($parameters); |
| 450 |
|
break; |
| 451 |
|
case 'not_in': |
| 452 |
|
$attributeData['description'][] = Description::parse($rule)->with($this->fancyImplode($parameters, ', ', ' or '))->getDescription(); |
| 453 |
|
$attributeData['value'] = $faker->word; |
| 454 |
|
break; |
| 455 |
|
case 'min': |
| 456 |
|
$attributeData['description'][] = Description::parse($rule)->with($parameters)->getDescription(); |
| 457 |
|
if (Arr::get($attributeData, 'type') === 'numeric' || Arr::get($attributeData, 'type') === 'integer') { |