Skip to content

Commit

Permalink
Inline local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Jul 7, 2024
1 parent 1a261ef commit b7045f5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions monorepo/HydeStan/HydeStan.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit b7045f5

Please sign in to comment.