Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
53 / 53 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | /* |
3 | * This file is part of Aplus Framework Validation Library. |
4 | * |
5 | * (c) Natan Felles <natanfelles@gmail.com> |
6 | * |
7 | * For the full copyright and license information, please view the LICENSE |
8 | * file that was distributed with this source code. |
9 | */ |
10 | return [ |
11 | 'alpha' => 'The {field} field requires only alphabetic characters.', |
12 | 'alphaNumber' => 'The {field} field requires only alphabetic and numeric characters.', |
13 | 'number' => 'The {field} field requires only numeric characters.', |
14 | 'uuid' => 'The {field} field requires a valid UUID.', |
15 | 'timezone' => 'The {field} field requires a valid timezone.', |
16 | 'base64' => 'The {field} field requires a valid base64 string.', |
17 | 'md5' => 'The {field} field requires a valid MD5 hash.', |
18 | 'hex' => 'The {field} field requires a valid hexadecimal string.', |
19 | 'hexColor' => 'The {field} field requires a valid hexadecimal color.', |
20 | 'json' => 'The {field} field requires a valid JSON string.', |
21 | 'regex' => 'The {field} field does not matches the required pattern.', |
22 | 'notRegex' => 'The {field} field matches a invalid pattern.', |
23 | 'email' => 'The {field} field requires a valid email address.', |
24 | 'greater' => 'The {field} field must be greater than {0}.', |
25 | 'greaterOrEqual' => 'The {field} field must be greater than or equal to {0}.', |
26 | 'less' => 'The {field} field must be less than {0}.', |
27 | 'lessOrEqual' => 'The {field} field must be less than or equal to {0}.', |
28 | 'in' => 'The {field} field does not have an allowed value.', |
29 | 'notIn' => 'The {field} field has a disallowed value.', |
30 | 'ip' => 'The {field} field requires a valid IP address.', |
31 | 'url' => 'The {field} field requires a valid URL address.', |
32 | 'datetime' => 'The {field} field does not match the required datetime format.', |
33 | 'between' => 'The {field} field must be between {0} and {1}.', |
34 | 'notBetween' => 'The {field} field can not be between {0} and {1}.', |
35 | 'equals' => 'The {field} field must be equals the {0} field.', |
36 | 'notEquals' => 'The {field} field can not be equals the {0} field.', |
37 | 'maxLength' => 'The {field} field requires {0} or less characters in length.', |
38 | 'minLength' => 'The {field} field requires {0} or more characters in length.', |
39 | 'length' => 'The {field} field requires exactly {0} characters in length.', |
40 | 'required' => 'The {field} field is required.', |
41 | 'isset' => 'The {field} field must be sent.', |
42 | 'latin' => 'The {field} field requires only latin characters.', |
43 | 'uploaded' => 'The {field} field requires a file to be uploaded.', |
44 | 'maxSize' => 'The {field} field requires a file that does not exceed the maximum size of {0} kilobytes.', |
45 | 'ext' => 'The {field} field requires a file with an accepted extension: {args}.', |
46 | 'mimes' => 'The {field} field requires a file with an accepted MIME type: {args}.', |
47 | 'image' => 'The {field} field requires an image.', |
48 | 'maxDim' => 'The {field} field requires an image that does not exceed the maximum dimensions of {0} in width and {1} in height.', |
49 | 'minDim' => 'The {field} field requires an image having the minimum dimensions of {0} in width and {1} in height.', |
50 | 'dim' => 'The {field} field requires an image with the exact dimensions of {0} in width and {1} in height.', |
51 | 'specialChar' => 'The {field} field requires special characters.', |
52 | 'optional' => 'The {field} field is optional. If undefined, validation passes.', |
53 | 'blank' => 'The {field} field can have a blank string to pass.', |
54 | 'null' => 'The {field} field can have a null value to pass.', |
55 | 'empty' => 'The {field} field can have an empty value to pass.', |
56 | 'array' => 'The {field} field requires an array.', |
57 | 'bool' => 'The {field} field requires a boolean value.', |
58 | 'float' => 'The {field} field requires a floating point number.', |
59 | 'int' => 'The {field} field requires an integer.', |
60 | 'object' => 'The {field} field requires an object.', |
61 | 'string' => 'The {field} field requires a string.', |
62 | ]; |