|
@@ 279-283 (lines=5) @@
|
| 276 |
|
$attributeData['type'] = 'boolean'; |
| 277 |
|
$attributeData['value'] = true; |
| 278 |
|
break; |
| 279 |
|
case 'after': |
| 280 |
|
$attributeData['type'] = 'date'; |
| 281 |
|
$attributeData['description'][] = Description::parse($rule)->with(date(DATE_RFC850, strtotime($parameters[0])))->getDescription(); |
| 282 |
|
$attributeData['value'] = date(DATE_RFC850, strtotime('+1 day', strtotime($parameters[0]))); |
| 283 |
|
break; |
| 284 |
|
case 'alpha': |
| 285 |
|
$attributeData['description'][] = Description::parse($rule)->getDescription(); |
| 286 |
|
$attributeData['value'] = $faker->word; |
|
@@ 321-325 (lines=5) @@
|
| 318 |
|
$attributeData['description'][] = Description::parse($rule)->with($parameters)->getDescription(); |
| 319 |
|
$attributeData['value'] = $faker->numberBetween($parameters[0], $parameters[1]); |
| 320 |
|
break; |
| 321 |
|
case 'before': |
| 322 |
|
$attributeData['type'] = 'date'; |
| 323 |
|
$attributeData['description'][] = Description::parse($rule)->with(date(DATE_RFC850, strtotime($parameters[0])))->getDescription(); |
| 324 |
|
$attributeData['value'] = date(DATE_RFC850, strtotime('-1 day', strtotime($parameters[0]))); |
| 325 |
|
break; |
| 326 |
|
case 'date_format': |
| 327 |
|
$attributeData['type'] = 'date'; |
| 328 |
|
$attributeData['description'][] = Description::parse($rule)->with($parameters)->getDescription(); |