Skip to content

Conversation

@weaverryan
Copy link
Member

Woo! Fixes #170

PHP-Parser is responsible for determining indentation for new code. When tabs are used, it sees this as 1 indent, and uses 1 space to indent. This had two side-effects:

  1. My original str_replace code was not smart enough to handle that. Easy fix using regex
  2. In general, any new code (e.g. getter method) is indented with 1 space.

@weaverryan weaverryan merged commit 9f95fcd into symfony:master Aug 7, 2018
weaverryan added a commit that referenced this pull request Aug 7, 2018
This PR was merged into the 1.0-dev branch.

Discussion
----------

Fixing bad empty line when source file uses tabs

Woo! Fixes #170

PHP-Parser is responsible for determining indentation for new code. When tabs are used, it sees this as 1 indent, and uses 1 space to indent. This had two side-effects:

1) My original `str_replace` code was not smart enough to handle that. Easy fix using regex
2) In general, any new code (e.g. getter method) is indented with 1 space.

Commits
-------

9f95fcd Fixing bad empty line when used with tabs
@weaverryan weaverryan deleted the fix-empty-line branch May 22, 2019 13:09
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.

[private $__EXTRA__LINE;]? Add field to related entity produces invalid code.

1 participant