Bugsnag\BugsnagLaravel\BugsnagServiceProvider::setupPaths PHP Method

setupPaths() protected method

Setup the client paths.
protected setupPaths ( Bugsnag\Client $client, string $base, string $path, string | null $strip, string | null $project ) : void
$client Bugsnag\Client
$base string
$path string
$strip string | null
$project string | null
return void
    protected function setupPaths(Client $client, $base, $path, $strip, $project)
    {
        if ($strip) {
            $client->setStripPath($strip);
            if (!$project) {
                $client->setProjectRoot("{$strip}/app");
            }
            return;
        }
        if ($project) {
            if ($base && substr($project, 0, strlen($base)) === $base) {
                $client->setStripPath($base);
            }
            $client->setProjectRoot($project);
            return;
        }
        $client->setStripPath($base);
        $client->setProjectRoot($path);
    }