| @@ 240-248 (lines=9) @@ | ||
| 237 | case 'whole_number': |
|
| 238 | case 'integer': |
|
| 239 | case 'boolean': |
|
| 240 | case 'float': |
|
| 241 | $fRules = 'trim|sanitize_string'; |
|
| 242 | if ('float' == $mapper->type) { |
|
| 243 | $fRules .= '|sanitize_floats'; |
|
| 244 | } else { |
|
| 245 | $fRules = 'sanitize_numbers'; |
|
| 246 | } |
|
| 247 | $vRules = $mapper->type; |
|
| 248 | break; |
|
| 249 | ||
| 250 | case 'date': |
|
| 251 | $vRules = $mapper->type; |
|
| @@ 221-229 (lines=9) @@ | ||
| 218 | case 'whole_number': |
|
| 219 | case 'integer': |
|
| 220 | case 'boolean': |
|
| 221 | case 'float': |
|
| 222 | $fRules = 'trim|sanitize_string'; |
|
| 223 | if ('float' == $mapper->type) { |
|
| 224 | $fRules .= '|sanitize_floats'; |
|
| 225 | } else { |
|
| 226 | $fRules = 'sanitize_numbers'; |
|
| 227 | } |
|
| 228 | $vRules = $mapper->type; |
|
| 229 | break; |
|
| 230 | ||
| 231 | case 'date': |
|
| 232 | $fRules = 'trim|sanitize_string'; |
|