%PDF- %GIF98; %PNG;
Server : ApacheSystem : Linux host.digitalbabaji.in 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64 User : addictionfreeind ( 1003) PHP Version : 7.2.34 Disable Function : exec,passthru,shell_exec,system Directory : /home/addictionfreeind/www/admin1/vendor/sentry/sentry/src/Util/ |
Upload File : |
<?php
declare(strict_types=1);
namespace Sentry\Util;
use Sentry\Options;
trait PrefixStripper
{
/**
* Removes from the given file path the specified prefixes in the SDK options.
*/
protected function stripPrefixFromFilePath(?Options $options, string $filePath): string
{
if (null === $options) {
return $filePath;
}
foreach ($options->getPrefixes() as $prefix) {
if (str_starts_with($filePath, $prefix)) {
return mb_substr($filePath, mb_strlen($prefix));
}
}
return $filePath;
}
}