diff options
author | Faraz Samapoor <f.samapoor@gmail.com> | 2023-07-02 23:53:30 +0330 |
---|---|---|
committer | Faraz Samapoor <f.samapoor@gmail.com> | 2023-11-07 09:43:40 +0330 |
commit | cbc47a98905906d7fbd9b78f8fc71de38a2a2f41 (patch) | |
tree | f36d03968f37890b8c61873de704ab62c301b9c5 /lib/private/Net | |
parent | d4393174fcb95358f2cbaf3261253e407c6ed356 (diff) | |
download | nextcloud-server-cbc47a98905906d7fbd9b78f8fc71de38a2a2f41.tar.gz nextcloud-server-cbc47a98905906d7fbd9b78f8fc71de38a2a2f41.zip |
Refactors Metadata, Migration, and Net.
In lib/private namespace to improve code readability.
Signed-off-by: Faraz Samapoor <fsa@adlas.at>
Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
Diffstat (limited to 'lib/private/Net')
-rw-r--r-- | lib/private/Net/HostnameClassifier.php | 4 | ||||
-rw-r--r-- | lib/private/Net/IpAddressClassifier.php | 4 |
2 files changed, 0 insertions, 8 deletions
diff --git a/lib/private/Net/HostnameClassifier.php b/lib/private/Net/HostnameClassifier.php index 626aa47083e..42dae790152 100644 --- a/lib/private/Net/HostnameClassifier.php +++ b/lib/private/Net/HostnameClassifier.php @@ -52,10 +52,6 @@ class HostnameClassifier { * Check host identifier for local hostname * * IP addresses are not considered local. Use the IpAddressClassifier for those. - * - * @param string $hostname - * - * @return bool */ public function isLocalHostname(string $hostname): bool { // Disallow local network top-level domains from RFC 6762 diff --git a/lib/private/Net/IpAddressClassifier.php b/lib/private/Net/IpAddressClassifier.php index d4698864ec8..b012ca8e956 100644 --- a/lib/private/Net/IpAddressClassifier.php +++ b/lib/private/Net/IpAddressClassifier.php @@ -46,10 +46,6 @@ class IpAddressClassifier { * Check host identifier for local IPv4 and IPv6 address ranges * * Hostnames are not considered local. Use the HostnameClassifier for those. - * - * @param string $ip - * - * @return bool */ public function isLocalAddress(string $ip): bool { $parsedIp = Factory::parseAddressString( |