File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ TIN::fromSlug('be7110.2512345')->check(); // Not strict
94
94
TIN::fromSlug('be7110.2512345')->check(strict: false); // Not strict
95
95
TIN::fromSlug('be7110.2512345')->check(true); // Strict
96
96
TIN::fromSlug('be7110.2512345')->check(strict: true); // Strict
97
-
97
+ ```
98
98
99
99
## Installation
100
100
@@ -145,4 +145,3 @@ Support our contributors by sponsoring them on [Github][github sponsors link].
145
145
https://img.shields.io/github/actions/workflow/status/loophp/tin/tests.yml?branch=master&style=flat-square
146
146
[ github sponsors link ] : https://github.com/loophp/tin/graphs/contributors
147
147
[ github actions link ] : https://github.com/loophp/tin/actions
148
- ```
Original file line number Diff line number Diff line change @@ -44,11 +44,12 @@ public function hasValidRule(string $tin): bool
44
44
protected function hasValidLength (string $ tin ): bool
45
45
{
46
46
$ c1c2 = substr ($ tin , 0 , 2 );
47
+ $ hasValidLength = parent ::hasValidLength ($ tin );
47
48
48
49
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 );
50
51
}
51
52
52
- return parent :: hasValidLength ( $ tin ) ;
53
+ return $ hasValidLength ;
53
54
}
54
55
}
You can’t perform that action at this time.
0 commit comments