From c4fc08e183622a92234b0af24a63e8aae81bc438 Mon Sep 17 00:00:00 2001 From: daitingting Date: Tue, 26 Dec 2023 08:27:28 +0000 Subject: [PATCH] * Refactor checkAddress function. --- module/zahost/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/zahost/model.php b/module/zahost/model.php index f103357af3..3b01e44a1c 100644 --- a/module/zahost/model.php +++ b/module/zahost/model.php @@ -110,7 +110,7 @@ class zahostModel extends model * @access public * @return bool */ - public function checkAddress($address) + public function checkAddress(string $address): bool { $address = str_replace(array('https://', 'http://'), '', $address);