Henrique Moody
0bb9b14658
Drop support for PHP 7.0
2018-01-03 11:09:02 +01:00
Henrique Moody
b10206bd28
Merge branch '1.1'
2018-01-02 22:57:58 +01:00
Henrique Moody
ee9e69776a
Merge branch '1.0' into 1.1
2018-01-02 22:47:22 +01:00
Henrique Moody
c931e2504b
Change conditions for Domain validation
...
Domains can have `--` as long as they don't start or end with `-` in its
parts.
2018-01-02 22:24:43 +01:00
Henrique Moody
37a71de7d0
Try to find template from default templates first
...
When executing `ValidationException::setTemplate()` using a template
key, it does not try to select the template, but instead it uses the
template key as the template itself.
In order to fix this behaviour, there is now a check for a key with the
defined template. In case the template was not found, use the defined
template as the template itself.
2018-01-02 21:56:07 +01:00
Henrique Moody
d072b4de6a
Remove "malkusch/bav" as dependency
...
And was that, without warning that the "malkusch/bav" package was
removed from Packagist. This commit removes it as dependency but do not
remove any class that uses it in case there is a user loading the
package from a VCS repository with Composer.
2018-01-02 21:45:22 +01:00
Henrique Moody
fa030637cc
Fix wrong call to PHPUnit assertions
...
The assertion methods are all static, therefore they should be called
with self::assert* instead of $this->assert*.
2017-11-12 14:35:19 +01:00
Gabriel Caruso
93ce9cb93a
Updated to PHPUnit 6
2017-11-12 14:22:22 +01:00
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