feat: add hacky blizzard seo method into Text class

parent e71dcac1
......@@ -31,6 +31,24 @@ class Text
return Str::lower(str_replace(' ', '-', str_replace('"', null, str_replace("'", null, $gamertag))));
}
/**
* @param string $gamertag
* @return string
*/
public static function blizzard(string $gamertag): string
{
return str_replace('#', '-', $gamertag);
}
/**
* @param string $gamertag
* @return string
*/
public static function blizzardSeo(string $gamertag): string
{
return self::seoGamertag(self::blizzard($gamertag));
}
/**
* Returns value greatest used.
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment