mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -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
|
* @param mixed $default
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
function env($key, $default = null)
|
function env(string $key, $default = null)
|
||||||
{
|
{
|
||||||
return Env::get($key, $default);
|
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
|
* Removes the last byte for v4 and the last 8 bytes for v6 IPs
|
||||||
*
|
*
|
||||||
* -------------------------------------------------------------
|
* @param string $ip
|
||||||
* From Symfony
|
* @return string
|
||||||
*/
|
*/
|
||||||
public static function anonymizeIP(string $ip): string
|
public static function anonymizeIP(string $ip): string
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue