Alexandre Gomes Gaigalas
8f545c142c
Ensure empty strings are never a valid currency code
2023-02-19 22:21:13 -03:00
Alexandre Gomes Gaigalas
e2b6138bf6
Add PublicDomainSuffix Rule
...
- List will be auto-updated from https://publicsuffix.org/list/public_suffix_list.dat
- Updated AbstractSearcher rules to be case insensitive
- Updated PR creator bots
- Docs and tests
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
Henrique Moody
745a5712eb
Revert "Use "sokil/php-isocodes" on CurrencyCode"
...
This reverts commit f9b9dd21f9
.
2021-03-19 15:12:44 +01:00
Henrique Moody
f9b9dd21f9
Use "sokil/php-isocodes" on CurrencyCode
...
Since "sokil/php-isocodes" is a dependency of our repository already, it
makes sense to use it as a source of currency codes instead of keeping a
list of currencies ourselves.
By using that library, we can also validate currency codes using
different sets.
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2021-02-06 15:52:40 +01: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
William Espindola
a463f8ab2d
Apply contribution guidelines to "CurrencyCode" rule
...
Also makes the rule case-sensitive since that is how ISO 4217
shows the currency codes.
Co-authored-by: Henrique Moody <henriquemoody@gmail.com>
2018-06-18 20:55:43 +02:00
Henrique Moody
fe3654b270
Improve RuleTestCase class
...
- Add documentation to the class and its methods;
- Move RuleTestCase to Test namespace;
- Use PHP 7 type hinting;
- Rename getRuleMock() to createValidatableMock().
2018-01-07 14:32:05 +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
d67394cd39
Escape fully qualified class names
2017-02-04 14:01:14 +01:00
Henrique Moody
cd46545855
Small coding standards and docs improvements
2015-10-24 01:32:07 -02:00
Henrique Moody
4964d561c4
Rename namespace of *TestCase classes
2015-10-18 14:50:59 -02:00
Justin Hook
4145faab39
Create "CurrencyCode" rule
2015-10-18 14:42:39 -02:00