Source of file SentryHelper.php
Size: 0,753 Bytes - Last Modified: 2021-12-23T10:09:59+00:00
/var/www/docs.ssmods.com/process/src/src/Helper/SentryHelper.php
123456789101112131415161718192021222324252627282930313233343536 | <?php /** * Class: SentryHelper. * * @author Russell Michell 2017-2021 <russ@theruss.com> * @package phptek/sentry */ namespace PhpTek\Sentry\Helper; class SentryHelper { /** * Normalise a tag-key ready for display within Sentry's UI. * * @param string $key * @return string */ public static function normalise_tag_name(string $key): string { return strtolower(preg_replace("#[\-_\s]+#", '.', trim($key))); } /** * Normalise an "Additional Info" key ready for display within Sentry's UI. * * @param string $key * @return string */ public static function normalise_extras_name(string $key): string { return ucwords(strtolower(trim($key))); } } |