Skip to content

Commit

Permalink
chore: autofix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Jul 17, 2024
1 parent fe5136f commit d3d6d55
Show file tree
Hide file tree
Showing 21 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion src/CountryHandler/Austria.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ final class Austria extends CountryHandler
/**
* @var string
*/
public const PATTERN = '\\d{9}';
public const PATTERN = '\d{9}';

protected function hasValidRule(string $tin): bool
{
Expand Down
2 changes: 1 addition & 1 deletion src/CountryHandler/Belgium.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ final class Belgium extends CountryHandler
/**
* @var string
*/
public const PATTERN = '\\d{2}[0-1]\\d[0-3]\\d{6}';
public const PATTERN = '\d{2}[0-1]\d[0-3]\d{6}';

protected function hasValidDate(string $tin): bool
{
Expand Down
2 changes: 1 addition & 1 deletion src/CountryHandler/Bulgaria.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ final class Bulgaria extends CountryHandler
/**
* @var string
*/
public const PATTERN = '\\d{10}';
public const PATTERN = '\d{10}';

protected function hasValidDate(string $tin): bool
{
Expand Down
2 changes: 1 addition & 1 deletion src/CountryHandler/Croatia.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ final class Croatia extends CountryHandler
/**
* @var string
*/
public const PATTERN = '\\d{11}';
public const PATTERN = '\d{11}';

protected function hasValidRule(string $tin): bool
{
Expand Down
2 changes: 1 addition & 1 deletion src/CountryHandler/Cyprus.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ final class Cyprus extends CountryHandler
/**
* @var string
*/
public const PATTERN = '[0,9]\\d{7}[A-Z]';
public const PATTERN = '[0,9]\d{7}[A-Z]';

protected function hasValidRule(string $tin): bool
{
Expand Down
2 changes: 1 addition & 1 deletion src/CountryHandler/Denmark.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ final class Denmark extends CountryHandler
/**
* @var string
*/
public const PATTERN = '[0-3]\\d[0-1]\\d{3}\\d{4}';
public const PATTERN = '[0-3]\d[0-1]\d{3}\d{4}';

protected function hasValidDate(string $tin): bool
{
Expand Down
2 changes: 1 addition & 1 deletion src/CountryHandler/Estonia.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ final class Estonia extends CountryHandler
/**
* @var string
*/
public const PATTERN = '[1-6]\\d{2}[0-1]\\d[0-3]\\d{5}';
public const PATTERN = '[1-6]\d{2}[0-1]\d[0-3]\d{5}';

protected function hasValidDate(string $tin): bool
{
Expand Down
2 changes: 1 addition & 1 deletion src/CountryHandler/Finland.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ final class Finland extends CountryHandler
/**
* @var string
*/
public const PATTERN = '[0-3]\\d[0-1]\\d{3}[+-A]\\d{3}[0-9A-Z]';
public const PATTERN = '[0-3]\d[0-1]\d{3}[+-A]\d{3}[0-9A-Z]';

protected function hasValidDate(string $tin): bool
{
Expand Down
2 changes: 1 addition & 1 deletion src/CountryHandler/France.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ final class France extends CountryHandler
/**
* @var string
*/
public const PATTERN = '[0-3]\\d{12}';
public const PATTERN = '[0-3]\d{12}';

protected function hasValidRule(string $tin): bool
{
Expand Down
4 changes: 2 additions & 2 deletions src/CountryHandler/Germany.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ final class Germany extends CountryHandler
/**
* @var string
*/
public const PATTERN_1 = '[1-9]\\d{10}';
public const PATTERN_1 = '[1-9]\d{10}';

/**
* @var string
*/
public const PATTERN_2 = '[1-9]\\d{10}';
public const PATTERN_2 = '[1-9]\d{10}';

protected function hasValidLength(string $tin): bool
{
Expand Down
2 changes: 1 addition & 1 deletion src/CountryHandler/Hungary.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ final class Hungary extends CountryHandler
/**
* @var string
*/
public const PATTERN = '8\\d{9}';
public const PATTERN = '8\d{9}';

protected function hasValidRule(string $tin): bool
{
Expand Down
4 changes: 2 additions & 2 deletions src/CountryHandler/Ireland.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ final class Ireland extends CountryHandler
/**
* @var string
*/
public const PATTERN_1 = '\\d{7}[a-wA-W]([a-iA-I]|W)';
public const PATTERN_1 = '\d{7}[a-wA-W]([a-iA-I]|W)';

/**
* @var string
*/
public const PATTERN_2 = '\\d{7}[a-wA-W]';
public const PATTERN_2 = '\d{7}[a-wA-W]';

protected function hasValidLength(string $tin): bool
{
Expand Down
2 changes: 1 addition & 1 deletion src/CountryHandler/Lithuania.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ final class Lithuania extends CountryHandler
/**
* @var string
*/
public const PATTERN = '[1-6]\\d{2}[0-1]\\d[0-3]\\d{5}';
public const PATTERN = '[1-6]\d{2}[0-1]\d[0-3]\d{5}';

protected function hasValidRule(string $tin): bool
{
Expand Down
2 changes: 1 addition & 1 deletion src/CountryHandler/Luxembourg.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ final class Luxembourg extends CountryHandler
/**
* @var string
*/
public const PATTERN = '(1[89]|20)\\d{2}(0[1-9]|1[012])(0[1-9]|[1-2][0-9]|3[0-1])\\d{5}';
public const PATTERN = '(1[89]|20)\d{2}(0[1-9]|1[012])(0[1-9]|[1-2][0-9]|3[0-1])\d{5}';

/**
* @var array<int, array<int, int>>
Expand Down
2 changes: 1 addition & 1 deletion src/CountryHandler/Netherlands.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ final class Netherlands extends CountryHandler
/**
* @var string
*/
public const PATTERN = '\\d{9}';
public const PATTERN = '\d{9}';

protected function hasValidRule(string $tin): bool
{
Expand Down
4 changes: 2 additions & 2 deletions src/CountryHandler/Poland.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ final class Poland extends CountryHandler
/**
* @var string
*/
public const PATTERN_1 = '\\d{10}';
public const PATTERN_1 = '\d{10}';

/**
* @var string
*/
public const PATTERN_2 = '\\d{11}';
public const PATTERN_2 = '\d{11}';

protected function hasValidDateWhenPattern2(string $tin): bool
{
Expand Down
2 changes: 1 addition & 1 deletion src/CountryHandler/Portugal.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ final class Portugal extends CountryHandler
/**
* @var string
*/
public const PATTERN = '\\d{9}';
public const PATTERN = '\d{9}';

protected function hasValidRule(string $tin): bool
{
Expand Down
2 changes: 1 addition & 1 deletion src/CountryHandler/Slovakia.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ final class Slovakia extends CountryHandler
*/
public const LENGTH = 10;

public const PATTERN = '([1-9]\\d[234789]\\d{7})|(\\d{2}[0156]\\d[0-3]\\d{4,5})';
public const PATTERN = '([1-9]\d[234789]\d{7})|(\d{2}[0156]\d[0-3]\d{4,5})';

public function hasValidRule(string $tin): bool
{
Expand Down
2 changes: 1 addition & 1 deletion src/CountryHandler/Slovenia.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ final class Slovenia extends CountryHandler
/**
* @var string
*/
public const PATTERN = '[1-9]\\d{7}';
public const PATTERN = '[1-9]\d{7}';

protected function hasValidRule(string $tin): bool
{
Expand Down
8 changes: 4 additions & 4 deletions src/CountryHandler/Sweden.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,22 @@ final class Sweden extends CountryHandler
/**
* @var string
*/
public const PATTERN_1 = '\\d{2}[0-1]\\d[0-3]\\d{5}';
public const PATTERN_1 = '\d{2}[0-1]\d[0-3]\d{5}';

/**
* @var string
*/
public const PATTERN_2 = '\\d{2}[0-1]\\d[6-9]\\d{5}';
public const PATTERN_2 = '\d{2}[0-1]\d[6-9]\d{5}';

/**
* @var string
*/
public const PATTERN_3 = '(1[89]|20)\\d{2}(0[1-9]|1[012])(0[1-9]|[1-2][0-9]|3[0-1])\\d{4}';
public const PATTERN_3 = '(1[89]|20)\d{2}(0[1-9]|1[012])(0[1-9]|[1-2][0-9]|3[0-1])\d{4}';

/**
* @var string
*/
public const PATTERN_4 = '(1[89]|20)\\d{2}(0[1-9]|1[012])(6[1-9]|[7-8][0-9]|9[0-1])\\d{4}';
public const PATTERN_4 = '(1[89]|20)\d{2}(0[1-9]|1[012])(6[1-9]|[7-8][0-9]|9[0-1])\d{4}';

protected function hasValidLength(string $tin): bool
{
Expand Down
4 changes: 2 additions & 2 deletions src/CountryHandler/UnitedKingdom.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ final class UnitedKingdom extends CountryHandler
/**
* @var string
*/
public const PATTERN_1 = '\\d{10}';
public const PATTERN_1 = '\d{10}';

/**
* @var string
*/
public const PATTERN_2 = '[a-ceg-hj-pr-tw-zA-CEG-HJ-PR-TW-Z][a-ceg-hj-npr-tw-zA-CEG-HJ-NPR-TW-Z]\\d{6}[abcdABCD ]';
public const PATTERN_2 = '[a-ceg-hj-pr-tw-zA-CEG-HJ-PR-TW-Z][a-ceg-hj-npr-tw-zA-CEG-HJ-NPR-TW-Z]\d{6}[abcdABCD ]';

public function getTIN(): string
{
Expand Down

0 comments on commit d3d6d55

Please sign in to comment.