Skip to content

Commit

Permalink
Revert code reformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
pboivin authored and ifox committed Jun 28, 2021
1 parent aa80d1a commit e7409b8
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/Models/Behaviors/HasSlug.php
Original file line number Diff line number Diff line change
Expand Up @@ -524,20 +524,7 @@ public function getUtf8Slug($str, $options = [])
*/
public function urlSlugShorter($string)
{
return strtolower(
trim(
preg_replace('~[^0-9a-z]+~i', '-',
html_entity_decode(
preg_replace('~&([a-z]{1,2})(?:acute|cedil|circ|grave|lig|orn|ring|slash|th|tilde|uml);~i', '$1',
htmlentities($string, ENT_QUOTES, 'UTF-8')
),
ENT_QUOTES,
'UTF-8'
)
),
'-'
)
);
return strtolower(trim(preg_replace('~[^0-9a-z]+~i', '-', html_entity_decode(preg_replace('~&([a-z]{1,2})(?:acute|cedil|circ|grave|lig|orn|ring|slash|th|tilde|uml);~i', '$1', htmlentities($string, ENT_QUOTES, 'UTF-8')), ENT_QUOTES, 'UTF-8')), '-'));
}

/**
Expand Down

0 comments on commit e7409b8

Please sign in to comment.