From 7663ac3b127a1233e051eaebb46f98dcb8174b5d Mon Sep 17 00:00:00 2001 From: Muhammed Hussein Karimi Date: Mon, 9 Sep 2024 15:13:00 +0330 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20=20typo:=20updating=20tele?= =?UTF-8?q?scope=5Fenabled=20variable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Muhammed Hussein Karimi --- src/Telescope.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Telescope.php b/src/Telescope.php index 58ae3e6cb..0e1f57537 100644 --- a/src/Telescope.php +++ b/src/Telescope.php @@ -133,10 +133,10 @@ public static function isEnabled() } $telescope_enabled = true; if (! config('telescope.enabled')) { - return false; + $telescope_enabled = false; } - if (config('telescope.sample_rate') < rand(0, 100)) { - return false; + else if (config('telescope.sample_rate') < rand(0, 100)) { + return $telescope_enabled = false; } Context::add('telescope_enabled', $telescope_enabled);