10000 minor #16 Remove redundant function call (WouterJ) · SofHad/symfony@1bca7b3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1bca7b3

Browse files
committed
minor symfony#16 Remove redundant function call (WouterJ)
This PR was merged into the master branch. Discussion ---------- Remove redundant function call After symfony/demo#15, the inner `trim()` call is no longer required as the outer one already trims all dashes. Commits ------- 22ee7c5 Remove redundant function call
2 parents 6f988ff + 22ee7c5 commit 1bca7b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AppBundle/Utils/Slugger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ class Slugger
2222
{
2323
public function slugify($string)
2424
{
25-
return trim(preg_replace('/[^a-z0-9]+/', '-', strtolower(trim(strip_tags($string)))), '-');
25+
return trim(preg_replace('/[^a-z0-9]+/', '-', strtolower(strip_tags($string))), '-');
2626
}
2727
}

0 commit comments

Comments
 (0)
0