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
8e59ec5d4a
Apply "Squiz.WhiteSpace.MemberVarSpacing"
...
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-02-09 14:08:43 +01:00
Henrique Moody
f52097075b
Increase PHPStan level to 2
...
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-02-04 00:29:13 +01:00
Henrique Moody
9e7571fb98
Add missing "@author" annotations
...
This commit will make sure that every class, interface, or trait will
have the "@author" annotation in it.
In order to create a list of authors, I used the "git blame" command,
which means that if someone changed or even created the file but does
not have any remaining line will not be shown in the list; it's a
trade-off worth but it is worth it. The other way to do it would be
carefully checking each file.
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2018-11-25 18:08:44 +01:00
Henrique Moody
afab4eb2b4
Rename "Related" to "Child"
...
The "NestedValidationException" has exceptions that are its children.
However, we call them "related". This commit updates the term over the
library.
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2018-08-02 11:18:33 +02:00
Emmerson Siqueira
0a031649a8
Apply contribution guidelines to "Attribute" rule
...
Signed-off-by: Emmerson Siqueira <emmersonsiqueira@gmail.com>
2018-05-31 13:50:36 +02:00
Henrique Moody
167c97bb83
Ensure names are always string
...
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2018-05-27 16:12:05 +02:00
Henrique Moody
c80524b457
Method assert() should not have a return value
...
One this method should throw an exception when the input is not valid,
returning `TRUE` when it succeeds is not really consistent.
2018-01-28 17:38:40 +01:00
Henrique Moody
30dc089565
Method check() should not have a return value
...
One this method should throw an exception when the input is not valid,
returning `TRUE` when it succeeds is not really consistent.
2018-01-28 17:38:40 +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
494b67871f
Fix wrong behaviour on AbstractRelated
...
When you define the name for an `AbstractRelated` instance, you expect
that it also define the name for its child. But, when the child already
had a name the `AbstractRelated` was overwriting its name with the
`reference`.
2016-09-17 20:23:38 +02:00
Henrique Moody
9c49dd3bcf
Use short array syntax
2015-10-17 22:56:32 -03:00
Henrique Moody
3e45647b81
Make all rules mandatory
2015-10-07 01:00:39 -03:00
Henrique Moody
7f8815e7ea
AbstractRelated should set names for child rule
2015-06-30 10:38:19 -03:00
Henrique Moody
a3c945aa51
Add license information and copyright in all files
2015-06-08 12:09:25 -03:00
Henrique Moody
b8c76e3054
Fix some coding standards
2015-06-08 11:51:45 -03:00
Henrique Moody
ab8ba09b14
Fix wrong behavior on AbstractRelated class
...
The wrong behavior was that any key with `''` was considered as true
even when the validator was/had NotEmpty rule.
2015-02-20 10:27:36 -02:00
Alexandre Gaigalas
1b1689bdea
AbstractRelated is accepts '' as valid by default
2015-02-13 09:22:18 -02:00
Henrique Moody
da193b75e0
Use PSR-2 standard
...
Most changes was made by php-cs-fixer.
Also removes unused `RecursiveTreeIterator` class.
2015-01-08 00:44:12 -02:00
Graham Campbell
ae056920b4
PSR-4 autoloading
2014-07-12 20:20:43 +01:00