Skip to content

Commit

Permalink
Renamed truncate_string function to truncate_str for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
trongate committed Aug 29, 2023
1 parent b545193 commit 948b95d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/tg_helpers/url_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function anchor($target_url, $text, $attributes = null, $additional_code = null)
* @param int $max_length The maximum length of the truncated string.
* @return string The truncated string with an ellipsis (...) if necessary.
*/
function truncate_string(string $value, int $max_length): string {
function truncate_str(string $value, int $max_length): string {
if (strlen($value) <= $max_length) {
return $value;
} else {
Expand Down

0 comments on commit 948b95d

Please sign in to comment.