Skip to content

Commit

Permalink
remove unused helper method simplified_url
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcage committed Sep 21, 2022
1 parent 117a073 commit af31d61
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions app/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,6 @@ function split_by_whitespace(string $value): array
}
}

if (! function_exists('simplified_url')) {
function simplified_url(string $value): string
{
$parsed = parse_url($value);
if (is_array($parsed) && isset($parsed['host'])) {
return $parsed['host'];
}

return $value;
}
}

if (! function_exists('emailize')) {
function emailize(string $text): string
{
Expand Down

0 comments on commit af31d61

Please sign in to comment.