From b7045f56e78a38c88d27d7fb4eb2523e643b63a4 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Sun, 7 Jul 2024 11:02:49 +0200 Subject: [PATCH] Inline local variable --- monorepo/HydeStan/HydeStan.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/monorepo/HydeStan/HydeStan.php b/monorepo/HydeStan/HydeStan.php index 7b2069e45fe..990978b4a1b 100644 --- a/monorepo/HydeStan/HydeStan.php +++ b/monorepo/HydeStan/HydeStan.php @@ -303,9 +303,7 @@ public function run(string $file, string $contents): void // Check for false positives $commonlyStringCastables = ['$article', '$document', 'getXmlElement()', '$url->loc', '$page->markdown', '$post->data(\'author\')']; - $strContainsAny = check_str_contains_any($commonlyStringCastables, $line); - - if ($strContainsAny) { + if (check_str_contains_any($commonlyStringCastables, $line)) { continue; }