Alexandre Gomes Gaigalas
727e7ccbfa
Increase phpstan level from 7 to 8
...
- Fixed all phpstan errors and ignoreds.
- False positives now have a "Why:" comment on phpstan config.
2023-02-19 00:19:10 -03:00
Alexandre Gomes Gaigalas
ab3732f91f
Use SPDX IDs for licensing
...
SPDX IDs are shorter than licensing notes previously used, and
adhere better to FOSS standards. It is also machine-readable.
2023-02-19 00:19:10 -03:00
Alexandre Gomes Gaigalas
15f148da24
Dusting off. See CHANGELOG.md for more details on this commit
2023-02-13 03:59:11 -03:00
Ondřej Vodáček
bf4082d208
fix phpdoc type for KeySet constructor ( #1365 )
...
by @voda
2022-01-19 12:40:08 +02:00
Henrique Moody
3145426472
Update version of "respect/coding-standard"
...
With that update, we will be fully following PSR-12.
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2020-07-21 22:54:41 +02:00
Henrique Moody
ef8a8f4b27
Turn LICENSE file into plain/text
...
There is no need for that file to be a Markdown, and it can be a plain
text file.
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-05-23 16:21:34 +02:00
Henrique Moody
272f18dcf5
Apply "Symfony.Functions.ScopeOrder"
...
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-05-11 20:00:19 +02:00
Henrique Moody
051866f75a
Make properties of "AbstractRelated" private
...
Following what is happening with pretty much every class in this
library, this commit will make the public properties of
"AbstractRelated" private.
Because other objects use some of those public properties, this commit
will also implement a couple of methods in "AbstractRelated" so they can
access the values they need.
This commit will also remove the method "decision" that makes dynamic
calls to "assert()," "check()," and "validate()" methods.
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-05-05 16:54:04 +02:00
Henrique Moody
6040ddee42
Fix the case of the "@inheritDoc" tag
...
According to the official documentation [1] the correct way of writing
the "inheritDoc" tag is with the uppercase "D".
[1]: https://docs.phpdoc.org/guides/inheritance.html
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-04-05 19:02:12 +02:00
Henrique Moody
99b912ff87
Apply "SlevomatCodingStandard.ControlStructures.DisallowYodaComparison"
...
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-02-09 14:19:22 +01:00
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
2e29b9e8c7
Fix "@author" annotations
...
Some classes and one trait had some mismatch values for their "@author"
annotation and this commit will fix the mismatch putting the correct
authors.
I used the "git blame" command to find out which people changed the file
and created a list based on that information.
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2018-11-25 18:04:59 +01:00
Henrique Moody
b696070874
Refactor "KeySet" rule
...
Do not extend AllOf exception, but instead extend "AbstractWrapper".
2018-03-03 18:59:36 +01: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
4d72af312f
Update PHP-CS-Fixer settings
2016-10-30 10:39:23 +01:00
Emmerson
d9a4c78b16
Fixes 'KeySet' rule when input is not array type
2016-05-05 13:01:04 +02:00
Henrique Moody
9c49dd3bcf
Use short array syntax
2015-10-17 22:56:32 -03:00
Henrique Moody
418935c206
Fix strict standards on KeySet rule
...
An overwritten method must have the same signature of the parent method.
2015-07-28 17:04:09 -03:00
Henrique Moody
7d9d19009a
Create KeySet rule
2015-07-21 12:35:44 -03:00