Skip to content

Commit ae6390c

Browse files
committed
Versao com diversas atualizacoes, ver CHANGELOG.md
1 parent a0f96e7 commit ae6390c

File tree

7 files changed

+30
-34
lines changed

7 files changed

+30
-34
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ composer.lock
88
docker-compose.yml
99
.phpcs-cache
1010
.phpunit.result.cache
11+
phpunit.xml.dist

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,20 @@
33
A partir da versão 3.5.1 nosso modelo de logs é baseado em [mantenha um changelog](https://keepachangelog.com/pt-BR/1.0.0/) e o
44
nosso versionamento continua sendo [versionamento semântico](https://semver.org/lang/pt-BR/).
55

6+
## [3.6.0](https://github.com/geekcom/validator-docs/compare/3.5.3...3.6.0)
7+
8+
## Novidades
9+
10+
- Corrigido: A documentação referente a validação de inscrição estadual.
11+
- Atualizado:
12+
- A versão mínima do PHP, e algumas dependências do projeto;
13+
- As classes de validação de formatos de documentos NIS e CNPJ;
14+
- O arquivo `phpunit.xml` foi adicionado ao `.gitignore`.
15+
- Removido: O arquivo `phpunit.xml`.
16+
- Adicionado:
17+
- O arquivo `phpunit.xml.dist`;
18+
- A possibilidade de rodar testes de unidade via comando `composer testdox`;
19+
620
## [3.5.4](https://github.com/geekcom/validator-docs/compare/3.5.3...3.5.4)
721

822
## Commits

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ $this->validate($request, [
8787

8888
```php
8989
$this->validate($request, [
90-
'inscricao_estadual:UF' => 'required|inscricao_estadual:UF',
90+
'inscricao_estadual' => 'required|inscricao_estadual:UF',
9191
]);
9292
```
9393

@@ -209,7 +209,7 @@ public function store(Request $request)
209209
'renavam' => 'required|renavam',
210210
'placa' => 'required|placa',
211211
'certidao' => 'required|certidao',
212-
'inscricao_estadual:UF' => 'required|inscricao_estadual:UF',
212+
'inscricao_estadual' => 'required|inscricao_estadual:SP',
213213
]);
214214

215215
dd($data);
@@ -226,7 +226,7 @@ public function store(Request $request)
226226
* **CPF** - https://geradornv.com.br/gerador-cpf/
227227
* **NIS** - https://www.4devs.com.br/gerador_de_pis_pasep
228228
* **CNS** - https://geradornv.com.br/gerador-cns/
229-
* **CERTIDÃO** - https://www.treinaweb.com.br/ferramentas-para-desenvolvedores/gerador/certidao
229+
* **CERTIDÕES** - https://www.4devs.com.br/gerador_numero_certidoes
230230
* **INSCRIÇÃO ESTADUAL** - https://www.4devs.com.br/gerador_de_inscricao_estadual
231231
* **RENAVAM** - https://www.4devs.com.br/gerador_de_renavam
232232
* **PLACA** - https://www.4devs.com.br/gerador_de_placa_automoveis

composer.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
}
1010
],
1111
"require": {
12-
"php": ">=7.2",
12+
"php": "^7.3|^8.0",
1313
"thiagocfn/inscricaoestadual": "^1.1"
1414
},
1515
"require-dev": {
1616
"phpunit/phpunit": "^8.4|^9.4",
17-
"orchestra/testbench": "^4.0",
18-
"php-coveralls/php-coveralls": "^2.2",
17+
"orchestra/testbench": "^6.0",
18+
"php-coveralls/php-coveralls": "^2.5",
1919
"squizlabs/php_codesniffer": "*",
20-
"phpstan/phpstan": "^0.12.5"
20+
"phpstan/phpstan": "^1.4"
2121
},
2222
"autoload": {
2323
"psr-4": {
@@ -38,14 +38,15 @@
3838
},
3939
"scripts": {
4040
"phpcs": "phpcs --standard=PSR12 -n src",
41-
"phpcbf" : "phpcbf --standard=PSR12 -n src",
41+
"phpstan": "phpstan analyse src --level 0",
42+
"phpcbf": "phpcbf --standard=PSR12 -n src",
4243
"unit": "phpunit --coverage-clover ./tests/log/clover.xml --colors=always",
4344
"unit-html": "php -d phar.readonly=0 vendor/bin/phpunit --coverage-html ./tests/log/ --colors=always",
44-
"phpstan": "phpstan analyse src --level 0",
45+
"testdox": "phpunit --testdox",
4546
"test": [
4647
"@phpcs",
47-
"@unit",
48-
"@phpstan"
48+
"@phpstan",
49+
"@unit"
4950
]
5051
}
5152
}

phpunit.xml

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/validator-docs/Formats/Cnpj.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
namespace geekcom\ValidatorDocs\Formats;
44

5-
class Cnpj implements \geekcom\ValidatorDocs\Contracts\ValidatorFormats
5+
use geekcom\ValidatorDocs\Contracts\ValidatorFormats;
6+
7+
class Cnpj implements ValidatorFormats
68
{
79
public static function validateFormat(string $value): bool
810
{

src/validator-docs/Formats/Nis.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
class Nis implements ValidatorFormats
88
{
9-
109
public static function validateFormat(string $value): bool
1110
{
1211
return preg_match('/^\d{3}\.\d{5}\.\d{2}-\d{1}$/', $value) > 0;

0 commit comments

Comments
 (0)