Commit graph

1480 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 b4dbd89f45
Allow failures on PHP 7.2
Once it's not fully stable yet.
2017-11-12 13:59:04 +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 5f50541086
Add PHP 7.2 to Travis builds 2017-10-16 17:58:16 +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
Tim Strijdhorst c013fac277
Fix currency code for Belarusian Ruble
References:
- https://en.wikipedia.org/wiki/ISO_4217
- http://www.xe.com/iso4217.php
2017-10-16 10:16:47 +02:00
Henrique Moody 658764a47f
Skip MimetypeTest when in HHVM 2017-10-16 10:16:47 +02:00
Lars Decker a17e5e74bc
Add missing "MinimumAge" parameter 2017-10-15 19:52:26 +02:00
Kan Yilmaz b237f9f787 Fix typo on "When.md" 2017-10-15 19:48:12 +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
Nick Lombard ad123b1bf4 Merge pull request #836 from Reeywhaar/sorted-rule
New rule: Sorted
2017-06-29 15:48:49 +02:00
Mikhail Vyrtsev 41658279e8 Codestyle fixed according to @nickl- 2017-06-29 16:26:47 +03:00
Mikhail Vyrtsev c50c27eecb Removed unwanted semicolon 2017-06-29 15:49:48 +03:00
Mikhail Vyrtsev 19174a8cb1 Fix codestyle according to @nickl- 2017-06-29 15:36:09 +03:00
Mikhail Vyrtsev 017f78e89e Fix scrutinizer warning 2017-06-29 15:03:50 +03:00
Mikhail Vyrtsev ac3f9c8d78 Removed $cmp variable, creds to @nickl- 2017-06-29 14:40:09 +03:00
Mikhail Vyrtsev 53d4182b18 uhm, well, it was actually fine 2017-06-29 06:37:26 +03:00
Mikhail Vyrtsev 9c89018c22 all that before was wrong >_< >_< 2017-06-29 06:18:40 +03: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 90f4073e1a fix docs 2017-06-29 05:29:10 +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
yoshihiro suzuki 006354d48f
Fix wrong link to "StringType" 2017-04-18 10:28:29 +02:00
Krzysztof Śmiałek 04e8b72908 Create "Unique" rule 2017-04-12 11:23:44 +02:00
Henrique Moody 4549938e30
Update subdivision codes 2017-04-12 10:54:07 +02:00
Senén b2faf8332b Fix Nif Validator 2017-04-11 23:16:58 +02:00
Henrique Moody 2f7a479b58
Add "ext-fileinfo" as suggestion 2017-04-11 11:27:21 +02:00
Henrique Moody 599d200c2e
Uniform Markdown lists on documentation 2017-03-28 11:53:14 +02:00
Henrique Moody 2dbc2065f8
Update "Alphabetically" list of validators 2017-03-28 11:43:42 +02:00
Henrique Moody 299a3b6f86
Add "Pis" to the list of validators 2017-03-28 11:42:01 +02:00
Henrique Moody 9350d464ce
Update "Installation" document
Also remove duplication of supported PHP version.
2017-03-28 11:35:48 +02:00
Henrique Moody 00d300f762
Add changelog to rules' documentation
Also:
- Create documentation for `Base` rule;
- Increase number of rules
2017-03-28 11:22:58 +02:00
Henrique Moody 569506bc14
Fix wrong docblock on Validator class 2017-03-27 23:52:34 +02:00
Henrique Moody 2a2e1d577e
Change how documentation of rules are presented
Rules are not always used from the alias `v`, neither called staticaly.
2017-03-27 17:26:21 +02:00
Jonathan Stewmon 298102ba13 Use annotations for variadic methods 2017-03-27 13:37:47 +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