Skip to content

Commit

Permalink
♻️ Moved dollar sign into bracket
Browse files Browse the repository at this point in the history
  • Loading branch information
fazed committed Sep 5, 2024
1 parent 578f526 commit a47028c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/voku/helper/UTF8.php
Original file line number Diff line number Diff line change
Expand Up @@ -4650,7 +4650,7 @@ public static function ltrim(string $str = '', string $chars = null): string
if ($chars !== null) {
/** @noinspection PregQuoteUsageInspection */
$chars = \preg_quote($chars);
$pattern = "^[${chars}]+";
$pattern = "^[{$chars}]+";
} else {
$pattern = '^[\\s]+';
}
Expand All @@ -4661,7 +4661,7 @@ public static function ltrim(string $str = '', string $chars = null): string

if ($chars !== null) {
$chars = \preg_quote($chars, '/');
$pattern = "^[${chars}]+";
$pattern = "^[{$chars}]+";
} else {
$pattern = '^[\\s]+';
}
Expand Down Expand Up @@ -5728,7 +5728,7 @@ public static function rtrim(string $str = '', string $chars = null): string
if ($chars !== null) {
/** @noinspection PregQuoteUsageInspection */
$chars = \preg_quote($chars);
$pattern = "[${chars}]+$";
$pattern = "[{$chars}]+$";
} else {
$pattern = '[\\s]+$';
}
Expand All @@ -5739,7 +5739,7 @@ public static function rtrim(string $str = '', string $chars = null): string

if ($chars !== null) {
$chars = \preg_quote($chars, '/');
$pattern = "[${chars}]+$";
$pattern = "[{$chars}]+$";
} else {
$pattern = '[\\s]+$';
}
Expand Down Expand Up @@ -13395,7 +13395,7 @@ public static function trim(string $str = '', string $chars = null): string
if ($chars !== null) {
/** @noinspection PregQuoteUsageInspection */
$chars = \preg_quote($chars);
$pattern = "^[${chars}]+|[${chars}]+\$";
$pattern = "^[{$chars}]+|[{$chars}]+\$";
} else {
$pattern = '^[\\s]+|[\\s]+$';
}
Expand All @@ -13406,7 +13406,7 @@ public static function trim(string $str = '', string $chars = null): string

if ($chars !== null) {
$chars = \preg_quote($chars, '/');
$pattern = "^[${chars}]+|[${chars}]+\$";
$pattern = "^[{$chars}]+|[{$chars}]+\$";
} else {
$pattern = '^[\\s]+|[\\s]+$';
}
Expand Down

0 comments on commit a47028c

Please sign in to comment.