mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 05:43:55 -07:00
Created VersionHelper.php
(#1731)
* Created `VersionHelper.php` * Update VersionHelper.php * Update CHANGELOG.md
This commit is contained in:
parent
768837608b
commit
fd7dc7ac95
4 changed files with 51 additions and 16 deletions
|
@ -2157,20 +2157,6 @@ function readUpdaterFile(): array|bool
|
|||
return json_decode(file_get_contents(UPDATER_FILE), true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Version formatter
|
||||
*
|
||||
* @param string $version
|
||||
* @return string
|
||||
*/
|
||||
function versionFormatter(string $version): string
|
||||
{
|
||||
$version = trim($version);
|
||||
$version = mb_strtolower($version, 'UTF-8');
|
||||
|
||||
return str_replace('v', '', $version);
|
||||
}
|
||||
|
||||
/**
|
||||
* IP Geolocation API
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue