Skip to content

Commit 22f93d2

Browse files
committed
remove duplicated code
1 parent 151e09c commit 22f93d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Pdp/Parser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ public function isSuffixValid($host)
259259
*/
260260
public function getRegistrableDomain($host)
261261
{
262-
if (strpos($host, '.') === false) {
262+
if (!$this->isMultiLabelDomain($host)) {
263263
return;
264264
}
265265

0 commit comments

Comments
 (0)