Commit graph

585 commits

Author SHA1 Message Date
Henrique Moody 5b7ea399c0
Fix coding standards 2017-11-12 14:21:46 +01:00
Henrique Moody d8e5f305a7
Remove "malkusch/bav" as a dependency
This packages is not maintained anymore, therefore it should be removed
from our codebase.
2017-11-12 13:59:05 +01:00
Henrique Moody 20979898c5
Merge branch '1.1' 2017-10-17 12:38:16 +02:00
Henrique Moody 22f1f14430
Merge branch '1.0' into 1.1 2017-10-17 12:15:51 +02:00
Henrique Moody 14572537fe
Improve "Phone" rule
- Only allow spaces and not "\t" or "\n";
- Once the number has a "(", it needs a ")".
2017-10-17 09:51:09 +02:00
RCooLeR 191ee47fc0
Update regex of "Phone" rule
Now regex also matches +1 (555) 555 5555
2017-10-17 08:58:47 +02:00
mazanax 8b3790103e
Create "Luhn" rule 2017-10-16 20:38:56 +02:00
Henrique Moody fd1964d887
Merge branch '1.1' 2017-10-16 10:43:22 +02:00
Henrique Moody 631affdbf2
Merge branch '1.0' into 1.1 2017-10-16 10:39:15 +02:00
Henrique Moody 658764a47f
Skip MimetypeTest when in HHVM 2017-10-16 10:16:47 +02:00
Jens Segers 7d42813fb7
Create "Base64" rule 2017-10-15 19:38:31 +02:00
Dick van der Heiden 327297ca6f
Create "Uuid" rule 2017-10-15 18:34:38 +02:00
Ian d65e713080
Improve grammar of "Equals" rule 2017-10-15 18:27:36 +02:00
Mikhail Vyrtsev 115ec0cd66 fix fix assertion when neighbour values are equal >_< 2017-06-29 06:00:26 +03:00
Mikhail Vyrtsev ce3597bce5 fix assertion when neighbour values are equal 2017-06-29 05:54:48 +03:00
Mikhail Vyrtsev 8d8735cdd0 fix indentation >_< 2017-06-29 05:42:29 +03:00
Mikhail Vyrtsev 52c8541b9e New rule: Sorted 2017-06-29 05:18:02 +03:00
Henrique Moody 0338e18e83
Rename rule "Date" to "DateTime"
Also change rules to use `DateTimeInterface` and `DateTimeImmutable`
when possible.
2017-05-01 13:16:59 +02:00
Henrique Moody 14d87da7d8
Fix minor code standards 2017-05-01 09:36:41 +02:00
Vitaliy 82f53d27e1
Create "Number" rule 2017-04-19 09:49:58 +02:00
Krzysztof Śmiałek 04e8b72908 Create "Unique" rule 2017-04-12 11:23:44 +02:00
Senén b2faf8332b Fix Nif Validator 2017-04-11 23:16:58 +02:00
Bruno Koga a0ba215524
Create "Pis" rule 2017-03-27 11:42:24 +02:00
Jonathan Stewmon 8851fb5abc
Always display message for AbstractRelated rule
`NestedValidationException` should include all `AbstractRelated` rule
exceptions.

`AbstractRelated` rule failures always indicate an interesting nested
context, which should not be omitted from the final result.

`NonOmissibleExceptionInterface` is a marker interface for
exceptions thrown by instances of `AbstractRelated`, which
facilitates identification of those rules' exceptions with
`instanceof`.
2017-03-27 10:21:45 +02:00
Henrique Moody 88e60b6a3a
Fix coding standard on PHPT file 2017-03-26 19:58:01 +02:00
Henrique Moody 2b8c560db4
Merge branch '1.1' 2017-03-14 10:46:47 +01:00
Henrique Moody 5ab87d1dd9
Merge branch '1.0' into 1.1 2017-03-14 10:44:11 +01:00
Henrique Moody dc869ac375
Only return "name" as is if it's a string 2017-03-14 10:28:03 +01:00
Henrique Moody b43c9b103b
Better message for Length rule
Update exception message when minimum value and maximum value are the
same.
2017-02-12 18:18:39 +01:00
Bogus bb5ad2d988
Replaced TLDs with current list from IANA 2017-02-08 09:22:25 +01:00
Henrique Moody 3bccf23673
Fix code standards on callback 2017-02-05 15:53:47 +01:00
Henrique Moody 86623fc3ca
SimpleXMLElement can also be used as an array 2017-02-05 15:03:48 +01:00
Bradyn Poulsen d48b55a092
Create "OneOf" rule 2017-02-05 14:49:07 +01:00
Henrique Moody 7ee4ae47d5
Rename "OneOf" to "AnyOf" 2017-02-05 12:28:08 +01:00
Henrique Moody 27d35987be
Create "StringVal" rule 2017-02-04 15:16:00 +01:00
Henrique Moody d67394cd39
Escape fully qualified class names 2017-02-04 14:01:14 +01:00
Henrique Moody 25bffa00e2
Merge branch '1.1' 2017-01-26 15:41:19 +01:00
Henrique Moody 03f4abbd08
Merge branch '1.0' into 1.1 2017-01-26 15:39:48 +01:00
Renato Moura e4ae02fe94
Fix "Cnpj" rule 2017-01-25 17:41:21 +01:00
Andy Snell 94a79c033a
Update MasterCard BIN Range
Updates the CreditCard validator regex for the MasterCard brand to match 16-digit card numbers starting with 22 - 27.  Additionally, updates the unit test for CreditCard with a published test card in the new BIN range.

Additional information on the BIN range update can be found at: https://www.mastercard.us/en-us/issuers/get-support/2-series-bin-expansion.html
2016-12-04 23:56:43 -05:00
Henrique Moody e708edd005
Rename rule "Numeric" to "NumericVal" 2016-11-06 18:45:44 +01:00
Henrique Moody 6f5c623926
Use class constant instead of FQCN 2016-10-30 20:16:13 +01:00
Henrique Moody f34a34c0b2
Always use mbstring functions 2016-10-30 10:45:30 +01:00
Henrique Moody 4d72af312f
Update PHP-CS-Fixer settings 2016-10-30 10:39:23 +01:00
Henrique Moody f2bb77bb8e
Create tests for "egulias/email-validator" ~2.1 2016-10-29 15:37:09 +02:00
Henrique Moody c65e1e37f9
Merge branch '1.1' 2016-10-29 15:30:23 +02:00
Henrique Moody 710e807a68
Merge branch '1.0' into 1.1 2016-10-29 15:29:17 +02:00
Henrique Moody f82fcf0762
Prevent "Regex" to process non-string inputs 2016-10-29 15:21:14 +02:00
Julián Gutiérrez 195a8fe534
Create "Nif" rule
Rule to validate spanish NIF (DNI/NIE/CIF).
2016-10-09 17:50:52 +02:00
Henrique Moody 639cfdb3c7
Replace getMock() by createMock() 2016-09-20 08:46:56 +02:00