@@ 192-196 (lines=5) @@ | ||
189 | $attributeData['type'] = 'boolean'; |
|
190 | $attributeData['value'] = true; |
|
191 | break; |
|
192 | case 'after': |
|
193 | $attributeData['type'] = 'date'; |
|
194 | $attributeData['description'][] = 'Must be a date after: `'.date(DATE_RFC850, strtotime($parameters[0])).'`'; |
|
195 | $attributeData['value'] = date(DATE_RFC850, strtotime('+1 day', strtotime($parameters[0]))); |
|
196 | break; |
|
197 | case 'alpha': |
|
198 | $attributeData['description'][] = 'Only alphabetic characters allowed'; |
|
199 | $attributeData['value'] = $faker->word; |
|
@@ 226-230 (lines=5) @@ | ||
223 | $attributeData['description'][] = 'Between: `'.$parameters[0].'` and `'.$parameters[1].'`'; |
|
224 | $attributeData['value'] = $faker->numberBetween($parameters[0], $parameters[1]); |
|
225 | break; |
|
226 | case 'before': |
|
227 | $attributeData['type'] = 'date'; |
|
228 | $attributeData['description'][] = 'Must be a date preceding: `'.date(DATE_RFC850, strtotime($parameters[0])).'`'; |
|
229 | $attributeData['value'] = date(DATE_RFC850, strtotime('-1 day', strtotime($parameters[0]))); |
|
230 | break; |
|
231 | case 'date_format': |
|
232 | $attributeData['type'] = 'date'; |
|
233 | $attributeData['description'][] = 'Date format: `'.$parameters[0].'`'; |