diff --git a/.github/workflows/rector.yml b/.github/workflows/rector.yml index 7ad6534..2e1718b 100644 --- a/.github/workflows/rector.yml +++ b/.github/workflows/rector.yml @@ -62,5 +62,5 @@ jobs: - name: Analyze for refactoring run: | - composer global require --dev rector/rector:^0.15.1 + composer global require --dev rector/rector:^0.18.7 rector process --dry-run --no-progress-bar diff --git a/README.md b/README.md index 1b4ffb5..22e6737 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,19 @@ [Farsi](./README.fa-IR.md) | English ## CodeIgniter DEA Rule [![PHPUnit](https://github.com/datamweb/codeigniter-dea-rule/actions/workflows/phpunit.yml/badge.svg)](https://github.com/datamweb/codeigniter-dea-rule/actions/workflows/phpunit.yml) +[![Coverage Status](https://coveralls.io/repos/github/datamweb/codeigniter-dea-rule/badge.svg?branch=develop)](https://coveralls.io/github/datamweb/codeigniter-dea-rule?branch=develop) [![PHPStan](https://github.com/datamweb/codeigniter-dea-rule/actions/workflows/phpstan.yml/badge.svg)](https://github.com/datamweb/codeigniter-dea-rule/actions/workflows/phpstan.yml) [![Rector](https://github.com/datamweb/codeigniter-dea-rule/actions/workflows/rector.yml/badge.svg)](https://github.com/datamweb/codeigniter-dea-rule/actions/workflows/rector.yml) [![Psalm](https://github.com/datamweb/codeigniter-dea-rule/actions/workflows/psalm.yml/badge.svg)](https://github.com/datamweb/codeigniter-dea-rule/actions/workflows/psalm.yml) -[![PHPCSFixer](https://github.com/datamweb/codeigniter-dea-ruleactions/workflows/phpcsfixer.yml/badge.svg)](https://github.com/datamweb/codeigniter-dea-ruleactions/workflows/phpcsfixer.yml) -[![PHPCPD](https://github.com/datamweb/codeigniter-dea-ruleactions/workflows/phpcpd.yml/badge.svg)](https://github.com/datamweb/codeigniter-dea-ruleactions/workflows/phpcpd.yml) +[![PHPCSFixer](https://github.com/datamweb/codeigniter-dea-rule/actions/workflows/phpcsfixer.yml/badge.svg)](https://github.com/datamweb/codeigniter-dea-rule/actions/workflows/phpcsfixer.yml) +[![PHPCPD](https://github.com/datamweb/codeigniter-dea-rule/actions/workflows/phpcpd.yml/badge.svg)](https://github.com/datamweb/codeigniter-dea-rule/actions/workflows/phpcpd.yml) [![Unused](https://github.com/datamweb/codeigniter-dea-rule/actions/workflows/unused.yml/badge.svg)](https://github.com/datamweb/codeigniter-dea-rule/actions/workflows/unused.yml) [![Deptrac](https://github.com/datamweb/codeigniter-dea-rule/actions/workflows/deptrac.yml/badge.svg)](https://github.com/datamweb/codeigniter-dea-rule/actions/workflows/deptrac.yml)
-[![Latest Stable Version](http://poser.pugx.org/datamweb/codeigniter-dea-rulev?style=for-the-badge)](https://packagist.org/packages/datamweb/shield-oauth) [![Total Downloads](http://poser.pugx.org/datamweb/codeigniter-dea-ruledownloads?style=for-the-badge)](https://packagist.org/packages/datamweb/shield-oauth) [![Latest Unstable Version](http://poser.pugx.org/datamweb/codeigniter-dea-rulev/unstable?style=for-the-badge)](https://packagist.org/packages/datamweb/shield-oauth) [![License](http://poser.pugx.org/datamweb/codeigniter-dea-rulelicense?style=for-the-badge)](https://packagist.org/packages/datamweb/shield-oauth) [![PHP Version Require](http://poser.pugx.org/datamweb/codeigniter-dea-rulerequire/php?style=for-the-badge)](https://packagist.org/packages/datamweb/shield-oauth) +[![Latest Stable Version](http://poser.pugx.org/datamweb/codeigniter-dea-rule/v?style=for-the-badge)](https://packagist.org/packages/datamweb/codeigniter-dea-rule) [![Total Downloads](http://poser.pugx.org/datamweb/codeigniter-dea-rule/downloads?style=for-the-badge)](https://packagist.org/packages/datamweb/codeigniter-dea-rule) [![Latest Unstable Version](http://poser.pugx.org/datamweb/codeigniter-dea-rule/v/unstable?style=for-the-badge)](https://packagist.org/packages/datamweb/codeigniter-dea-rule) [![License](http://poser.pugx.org/datamweb/codeigniter-dea-rule/license?style=for-the-badge)](https://packagist.org/packages/datamweb/codeigniter-dea-rule) [![PHP Version Require](http://poser.pugx.org/datamweb/codeigniter-dea-rule/require/php?style=for-the-badge)](https://packagist.org/packages/datamweb/codeigniter-dea-rule) **`CodeIgniter DEA Rule`** helps you to validate the email provided by the user and to deal with it if the email was of Temporary & Disponsable Emails(DEA) use type. diff --git a/docs/index.md b/docs/index.md index cdac2a5..0f1ad72 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,5 +1,6 @@ ## CodeIgniter DEA Rule [![PHPUnit](https://github.com/datamweb/codeigniter-dea-rule/actions/workflows/phpunit.yml/badge.svg)](https://github.com/datamweb/codeigniter-dea-rule/actions/workflows/phpunit.yml) +[![Coverage Status](https://coveralls.io/repos/github/datamweb/codeigniter-dea-rule/badge.svg?branch=develop)](https://coveralls.io/github/datamweb/codeigniter-dea-rule?branch=develop) [![PHPStan](https://github.com/datamweb/codeigniter-dea-rule/actions/workflows/phpstan.yml/badge.svg)](https://github.com/datamweb/codeigniter-dea-rule/actions/workflows/phpstan.yml) [![Rector](https://github.com/datamweb/codeigniter-dea-rule/actions/workflows/rector.yml/badge.svg)](https://github.com/datamweb/codeigniter-dea-rule/actions/workflows/rector.yml) [![Psalm](https://github.com/datamweb/codeigniter-dea-rule/actions/workflows/psalm.yml/badge.svg)](https://github.com/datamweb/codeigniter-dea-rule/actions/workflows/psalm.yml) diff --git a/phpstan-baseline.php b/phpstan-baseline.php index 145db48..9183266 100644 --- a/phpstan-baseline.php +++ b/phpstan-baseline.php @@ -2,9 +2,14 @@ $ignoreErrors = []; -// $ignoreErrors[] = [ -// 'message' => '#^Property Datamweb\\\\CodeIgniterDEARule\\\\Database\\\\Migrations\\\\LogsTempEmailMigration\\:\\:\\$attributes type has no value type specified in iterable type array\\.$#', -// 'count' => 1, -// 'path' => __DIR__ . '/src/Database/Migrations/2023-11-11-105553_LogsTempEmailMigration.php', -// ]; +$ignoreErrors[] = [ + 'message' => '#^Property Tests\\\\Support\\\\Config\\\\Registrar\\:\\:\\$dbConfig type has no value type specified in iterable type array\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/tests/_support/Config/Registrar.php', +]; +$ignoreErrors[] = [ + 'message' => '#^Method Tests\\\\Support\\\\Config\\\\Registrar\\:\\:Database\\(\\) return type has no value type specified in iterable type array\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/tests/_support/Config/Registrar.php', +]; return ['parameters' => ['ignoreErrors' => $ignoreErrors]]; diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 609c716..e89b18e 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -91,13 +91,13 @@