Skip to content

Commit

Permalink
refactor: remove unneeded ()
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Aug 2, 2024
1 parent 0be3116 commit c1687fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Helpers/text_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ function reduce_multiples(string $str, string $character = ',', bool $trim = fal
$pattern = '#' . preg_quote($character, '#') . '{2,}#';
$str = preg_replace($pattern, $character, $str);

return ($trim) ? trim($str, $character) : $str;
return $trim ? trim($str, $character) : $str;
}
}

Expand Down

0 comments on commit c1687fa

Please sign in to comment.