Skip to content

Conform to Twig coding standards #519

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

michaelperrin
Copy link

See http://twig.sensiolabs.org/doc/2.x/coding_standards.html:

Do not put any spaces before and after the opening and the closing of arrays and hashes.

Put one (and only one) space after the start of a delimiter ({{, {%, and {#) and before the end of a delimiter (}}, %}, and #})

I changed a {%else%} to {% else %} on this point.

@bocharsky-bw
Copy link
Contributor

👍

Something that our PHP CS Fixer doesn't cover

@yceruto
Copy link
Member

yceruto commented Mar 29, 2017

👍

@javiereguiluz
Copy link
Member

I hate this and it looks ugly ... but it's the standard, so let's merge this! Thanks @michaelperrin!

@javiereguiluz javiereguiluz merged commit 3d5fb91 into symfony:master Mar 30, 2017
javiereguiluz added a commit that referenced this pull request Mar 30, 2017
This PR was merged into the master branch.

Discussion
----------

Conform to Twig coding standards

See http://twig.sensiolabs.org/doc/2.x/coding_standards.html:

> Do not put any spaces before and after the opening and the closing of arrays and hashes.

> Put one (and only one) space after the start of a delimiter ({{, {%, and {#) and before the end of a delimiter (}}, %}, and #})

I changed a `{%else%}` to `{% else %}` on this point.

Commits
-------

3d5fb91 Conform to Twig coding standards
@michaelperrin
Copy link
Author

Thanks @javiereguiluz! I agree with you, that doesn't really look better, but it's the standard!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants