From f848af607204ebbbe4ebb27dc8ae2af194b3591e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=82=EF=B8=8F=20=20Eli=20Hooten?= <87772943+eliatcodecov@users.noreply.github.com> Date: Wed, 3 Jul 2024 10:10:35 -0500 Subject: [PATCH] Update LaravelOpenTelemetryServiceProvider.php Renames a variable --- src/LaravelOpenTelemetryServiceProvider.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/LaravelOpenTelemetryServiceProvider.php b/src/LaravelOpenTelemetryServiceProvider.php index 4fea579..135ec20 100644 --- a/src/LaravelOpenTelemetryServiceProvider.php +++ b/src/LaravelOpenTelemetryServiceProvider.php @@ -34,11 +34,11 @@ public function register() 'laravel_codecov_opentelemetry' ); - $instance = $this->initOpenTelemetry(); + $inst = $this->initOpenTelemetry(); - if ($instance) { - $this->app->singleton(Tracer::class, function () use ($instance) { - return $instance; + if ($inst) { + $this->app->singleton(Tracer::class, function () use ($inst) { + return $inst; }); } }