Skip to content

Commit a704934

Browse files
committed
chore: fix README
1 parent d3d6d55 commit a704934

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ TIN::fromSlug('be7110.2512345')->check(); // Not strict
9494
TIN::fromSlug('be7110.2512345')->check(strict: false); // Not strict
9595
TIN::fromSlug('be7110.2512345')->check(true); // Strict
9696
TIN::fromSlug('be7110.2512345')->check(strict: true); // Strict
97-
97+
```
9898

9999
## Installation
100100

@@ -145,4 +145,3 @@ Support our contributors by sponsoring them on [Github][github sponsors link].
145145
https://img.shields.io/github/actions/workflow/status/loophp/tin/tests.yml?branch=master&style=flat-square
146146
[github sponsors link]: https://github.com/loophp/tin/graphs/contributors
147147
[github actions link]: https://github.com/loophp/tin/actions
148-
```

src/CountryHandler/Slovakia.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,12 @@ public function hasValidRule(string $tin): bool
4444
protected function hasValidLength(string $tin): bool
4545
{
4646
$c1c2 = substr($tin, 0, 2);
47+
$hasValidLength = parent::hasValidLength($tin);
4748

4849
if (54 > $c1c2) {
49-
return $this->matchLength($tin, self::LENGTH) || $this->matchLength($tin, self::LENGTH - 1);
50+
return $hasValidLength || $this->matchLength($tin, self::LENGTH - 1);
5051
}
5152

52-
return parent::hasValidLength($tin);
53+
return $hasValidLength;
5354
}
5455
}

0 commit comments

Comments
 (0)