mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
prefix code with spaces in EntityGenerator #5203
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @poolerMF on GitHub (Jul 27, 2016).
Originally assigned to: @Majkl578 on GitHub.
hello
class EntityGenerator, function prefixCodeWithSpaces
old condition:
suggested condition:
@Ocramius commented on GitHub (Jul 27, 2016):
The fact that you have
\rin the codebase seems weird. What would thereason for the change be?
On 27 Jul 2016 4:54 p.m., "poolerMF" notifications@github.com wrote:
@poolerMF commented on GitHub (Jul 27, 2016):
I have custom EntityGenrator, with custom templates ... and now I see the difference ...
I use WINDOWS, so my line separator is CRLF mode
so, becouse someone should have CRLF line separator
@Ocramius commented on GitHub (Jul 28, 2016):
@poolerMF you should pretty much always get rid of CRLF, and set up your editor, as well as GIT, to strip them.
While I get that it would be interesting in supporting CRLF, I see little point in it, since we'd just support a bad practice then.
EDIT: that's my take on it, will let someone else in the team take a final decision.
@Ocramius commented on GitHub (Jul 28, 2016):
@beberlei can you take a look at this, please?
@Majkl578 commented on GitHub (Dec 20, 2017):
EntityGenerator is going to be removed in Doctrine 3.0, thanks for reporting.