Commit graph

10 commits

Author SHA1 Message Date
Henrique Moody
c30603759e
Apply "SlevomatCodingStandard.TypeHints.TypeHintDeclaration"
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-02-09 14:09:28 +01:00
Henrique Moody
985b6fac25
Increate PHPStan level to 7
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-02-04 01:12:08 +01:00
Henrique Moody
4519739f8b
Increate PHPStan level to 6
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-02-04 01:09:49 +01:00
Henrique Moody
ccf60f0ee3
Method validate() should always return a boolean 2018-01-28 17:38:36 +01:00
Henrique Moody
ef975629f3
Changes on PHP-CS-Fixer configuration
Because of `declare(strict_types=1)` some changes were necessary.
2018-01-04 17:59:37 +01:00
Henrique Moody
4d72af312f
Update PHP-CS-Fixer settings 2016-10-30 10:39:23 +01:00
Henrique Moody
9c49dd3bcf Use short array syntax 2015-10-17 22:56:32 -03:00
Henrique Moody
59aa5166c6 Add missing properties on Size rule 2015-07-20 14:21:16 -03:00
Henrique Moody
4f8faab765 Fix wrong behaviour on Size rule
The validation was made only on `validate()` method, but it was
necessary to overwrite `assert()` and `check()` to replace the filename
by the size.
The `Size` rule now doesn't extends `Between` class, and instead it
extends `AbstractRule` and performs the validation only on `validate()`
method like many other rules.
2015-07-20 13:53:48 -03:00
Henrique Moody
cc6da3a2e4 Create "Size" rule 2015-06-18 23:07:22 -03:00