Skip to content

Commit

Permalink
style: fix code style errors
Browse files Browse the repository at this point in the history
  • Loading branch information
datamweb committed Apr 8, 2024
1 parent b058826 commit 7aa8454
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/Config/DEARule.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class DEARule
* We use a large database to check temporary emails. However,
* If you want to specifically identify the domain as Temporary Email, add it there.
*
* @var string[]
* @var list<string>
* @phpstan-var list<string>
*/
public array $filesBlacklisted = [
Expand All @@ -40,7 +40,7 @@ class DEARule
* We use a large database to check temporary emails. However,
* If you want to specifically identify the domain as Temporary Email, add it there.
*
* @var string[]
* @var list<string>
* @phpstan-var list<string>
*/
public array $domainBlacklisted = [
Expand All @@ -53,7 +53,7 @@ class DEARule
* --------------------------------------------------------------------
* The email added here will be considered valid anyway.
*
* @var string[]
* @var list<string>
* @phpstan-var list<string>
*/
public array $emailsWhiteListed = [
Expand Down
2 changes: 1 addition & 1 deletion src/Config/Registrar.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Registrar
* --------------------------------------------------------------------------
* Register the `is-temp-email` rule for used like CI4 rules.
*
* @return array<string, array<class-string<DEAValidator>>>
* @return array<string, list<class-string<DEAValidator>>>
*/
public static function Validation(): array
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class LogsTempEmailMigration extends Migration
private string $tableName;

/**
* @var string[]
* @var list<string>
*/
private array $attributes;

Expand Down
8 changes: 4 additions & 4 deletions tests/Validation/DEAValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function testIsTempEmail(array $data, bool $expected): void
}

/**
* @return array<array<array<string, string>|bool>> $data
* @return list<list<array<string, string>|bool>> $data
*/
public static function provideIsTempEmail(): iterable
{
Expand Down Expand Up @@ -108,7 +108,7 @@ public function testIsTempEmailByMutiDBFiles(array $data, bool $expected): void
}

/**
* @return array<array<array<string, string>|bool>> $data
* @return list<list<array<string, string>|bool>> $data
*/
public static function provideIsTempEmailByMutiDBFiles(): iterable
{
Expand Down Expand Up @@ -151,7 +151,7 @@ public function testIsTempEmailByDomainBlacklisted(array $data, bool $expected):
}

/**
* @return array<array<array<string, string>|bool>> $data
* @return list<list<array<string, string>|bool>> $data
*/
public static function provideIsTempEmailByDomainBlacklisted(): iterable
{
Expand Down Expand Up @@ -190,7 +190,7 @@ public function testEmailIsDomainBlacklistedButEmailsWhiteListed(array $data, bo
}

/**
* @return array<array<array<string, string>|bool>> $data
* @return list<list<array<string, string>|bool>> $data
*/
public static function provideEmailIsDomainBlacklistedButEmailsWhiteListed(): iterable
{
Expand Down

0 comments on commit 7aa8454

Please sign in to comment.