|
@@ 209-213 (lines=5) @@
|
| 206 |
|
$attributeData['type'] = 'boolean'; |
| 207 |
|
$attributeData['value'] = true; |
| 208 |
|
break; |
| 209 |
|
case 'after': |
| 210 |
|
$attributeData['type'] = 'date'; |
| 211 |
|
$attributeData['description'][] = Description::parse($rule)->with(date(DATE_RFC850, strtotime($parameters[0])))->getDescription(); |
| 212 |
|
$attributeData['value'] = date(DATE_RFC850, strtotime('+1 day', strtotime($parameters[0]))); |
| 213 |
|
break; |
| 214 |
|
case 'alpha': |
| 215 |
|
$attributeData['description'][] = Description::parse($rule)->getDescription(); |
| 216 |
|
$attributeData['value'] = $faker->word; |
|
@@ 251-255 (lines=5) @@
|
| 248 |
|
$attributeData['description'][] = Description::parse($rule)->with($parameters)->getDescription(); |
| 249 |
|
$attributeData['value'] = $faker->numberBetween($parameters[0], $parameters[1]); |
| 250 |
|
break; |
| 251 |
|
case 'before': |
| 252 |
|
$attributeData['type'] = 'date'; |
| 253 |
|
$attributeData['description'][] = Description::parse($rule)->with(date(DATE_RFC850, strtotime($parameters[0])))->getDescription(); |
| 254 |
|
$attributeData['value'] = date(DATE_RFC850, strtotime('-1 day', strtotime($parameters[0]))); |
| 255 |
|
break; |
| 256 |
|
case 'date_format': |
| 257 |
|
$attributeData['type'] = 'date'; |
| 258 |
|
$attributeData['description'][] = Description::parse($rule)->with($parameters)->getDescription(); |