From 208f447a10fc416397edf00a5fc6380aa284d393 Mon Sep 17 00:00:00 2001 From: nuno maduro Date: Wed, 12 Aug 2026 15:29:21 +0100 Subject: [PATCH] chore: style --- src/Plugins/Snapshot.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/Plugins/Snapshot.php b/src/Plugins/Snapshot.php index bd082100..e210b4f7 100644 --- a/src/Plugins/Snapshot.php +++ b/src/Plugins/Snapshot.php @@ -156,12 +156,6 @@ final class Snapshot implements HandlesArguments return true; } - foreach (self::CI_ENVIRONMENT_VARIABLES as $environmentVariable) { - if (getenv($environmentVariable) !== false) { - return true; - } - } - - return false; + return array_any(self::CI_ENVIRONMENT_VARIABLES, fn (string $environmentVariable): bool => getenv($environmentVariable) !== false); } }