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
Henrique Moody
642602fd43
Update version of PHPStan packages
...
Some amazing features had to be ignored because it conflicts with out
coring standards. I hope to soon fix them so we can use PHPStan to its
fullest potential.
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2020-07-25 22:50:59 +02:00
Henrique Moody
b9e73db494
Add support for PHP 7.4 version
...
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2020-04-04 22:29:03 +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
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
4ab037ed87
Apply "SlevomatCodingStandard.ControlStructures.UselessIfConditionWithReturn"
...
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-02-09 14:24:08 +01: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
44f4d65a3d
Apply "SlevomatCodingStandard.PHP.UselessParentheses"
...
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-02-09 14:15:06 +01:00
Henrique Moody
7e3bf36f8d
Apply "SlevomatCodingStandard.ControlStructures.AssignmentInCondition"
...
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-02-09 14:12:38 +01:00
Henrique Moody
0e0581a9da
Apply "Squiz.WhiteSpace.OperatorSpacing"
...
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-02-09 14:08:43 +01:00
William Espindola
b507d928c1
Apply contribution guidelines to "Cnh" rule
...
Co-Authored-By: Henrique Moody <henriquemoody@gmail.com>
2018-06-11 22:24:28 +02: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
f34a34c0b2
Always use mbstring functions
2016-10-30 10:45:30 +01:00
Gabriel Pedro
a772d7f89a
Replace CNH validation algorithm
...
The old algorithm not working with some CNH values, e.g 00641829409.
You can even do some checking on
http://www.detran.pr.gov.br/modules/catasg/servicos-detalhes.php?tema=motorista&id=239 .
Original algo can be found on
http://forum.imasters.com.br/topic/400293-validate-br .
2016-09-18 13:25:18 +02: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
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