Skip to content

Commit d52e765

Browse files
Clean code
1 parent ef03733 commit d52e765

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/Rules/IpVN.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,7 @@ protected function getIpRanges(string $ip, int $version): ?array
7070
continue;
7171
}
7272

73-
if (isset($map['range'])) {
74-
return $map['range'];
75-
}
76-
77-
return null;
73+
return $map['range'] ?? null;
7874
}
7975
}
8076

src/Rules/MobileVN.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static function pregFormat(): string
2121
'::head::' => implode('|', [
2222
'3[2-9]',
2323
'5[2689]',
24-
'7(0|[6-9])',
24+
'7[06-9]',
2525
'8[1-9]',
2626
'9[0-9]',
2727
]),

0 commit comments

Comments
 (0)