mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Minor adjustments (#644)
This commit is contained in:
parent
b0a0ec1dd4
commit
274550cec4
2 changed files with 4 additions and 5 deletions
|
@ -59,7 +59,7 @@ require_once __DIR__ . '/vendor/autoload.php';
|
|||
* @param mixed $default
|
||||
* @return mixed
|
||||
*/
|
||||
function env($key, $default = null)
|
||||
function env(string $key, $default = null)
|
||||
{
|
||||
return Env::get($key, $default);
|
||||
}
|
||||
|
|
|
@ -93,12 +93,11 @@ class IPHelper
|
|||
}
|
||||
|
||||
/**
|
||||
* Anonymizes an IP/IPv6.
|
||||
*
|
||||
* Anonymize an IP/IPv6.
|
||||
* Removes the last byte for v4 and the last 8 bytes for v6 IPs
|
||||
*
|
||||
* -------------------------------------------------------------
|
||||
* From Symfony
|
||||
* @param string $ip
|
||||
* @return string
|
||||
*/
|
||||
public static function anonymizeIP(string $ip): string
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue