Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

sebastianblum
Copy link

Hello,

I found the symfony-demo repository and the idea behind is great.

also in the symfony best practices, the slugger has 2 problems in my opinion.

  • several dashes like lorem--ipsum
  • dashes at the begin or end like -lorem-ipsum-

here is my litte pull request.
sebastian

@javiereguiluz
Copy link
Member

@sebastianblum thanks for creating this PR. I love it when improvements are short and simple!

Just a note for future improvements: in this particular application we don't care about the actual slugger logic. We just use it as an example of how to define a service for classes that implement a simple feature. However, since your PR doesn't complicate anything and it includes a much needed improvement, it makes a lot of sense to merge it. Thanks.

@javiereguiluz javiereguiluz merged commit 5c82409 into symfony:master Mar 28, 2015
javiereguiluz added a commit that referenced this pull request Mar 28, 2015
…nd removed doubles dashes (Sebastian Blum)

This PR was merged into the master branch.

Discussion
----------

Optimized slugger: trimming dash at the beginning & end and removed doubles dashes

Hello,

I found the symfony-demo repository and the idea behind is great.

also in the symfony best practices, the slugger has 2 problems in my opinion.
* several dashes like lorem--ipsum
* dashes at the begin or end like -lorem-ipsum-

here is my litte pull request.
sebastian

Commits
-------

5c82409 Optimized slugger: trimming dash at the beginning & end and removed double dashes
javiereguiluz added a commit that referenced this pull request Mar 28, 2015
This PR was merged into the master branch.

Discussion
----------

Remove redundant function call

After #15, the inner `trim()` call is no longer required as the outer one already trims all dashes.

Commits
-------

22ee7c5 Remove redundant function call
sayjun0505 added a commit to sayjun0505/sym_proj that referenced this pull request Apr 16, 2023
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
spider-yamet added a commit to spider-yamet/sym_proj that referenced this pull request Apr 16, 2023
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
frederickboyd pushed a commit to frederickboyd/frederickboyd that referenced this pull request May 25, 2025
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants