Skip to content

Commit

Permalink
[CodingStyle] Rename method: containsASCIIChar to containsControlASCI…
Browse files Browse the repository at this point in the history
…IChar on EncapsedStringsToSprintfRector (#6720)
  • Loading branch information
samsonasik authored Feb 6, 2025
1 parent 78382d2 commit 1964b34
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ private function shouldSkip(InterpolatedString $interpolatedString): bool
continue;
}

if ($this->containsASCIIChar($part->value)) {
if ($this->containsControlASCIIChar($part->value)) {
return true;
}
}
Expand Down Expand Up @@ -265,7 +265,7 @@ private function createString(string $value): String_
]);
}

private function containsASCIIChar(string $content): bool
private function containsControlASCIIChar(string $content): bool
{
return (bool) Strings::match($content, '#[\x00-\x08\x0B\x0C\x0E-\x1F]#');
}
Expand Down

0 comments on commit 1964b34

Please sign in to comment.