Skip to content

Conversation

@deviantintegral
Copy link

I see that nette places two spaces between methods which is fine, but doesn't match most other PHP projects. This PR makes the spacing configurable while leaving the default at 2 spaces.

  • new feature
  • BC break? no
  • doc PR: I can write after I know this PR will be merged.

@dg dg closed this in 1a7b1a4 Aug 6, 2018
@dg
Copy link
Member

dg commented Aug 6, 2018

I added the PsrPrinter that solves this issue:

$printer = new Nette\PhpGenerator\PsrPrinter;

$class = new Nette\PhpGenerator\ClassType('Demo');
// ...

echo $printer->printClass($class); // 4 spaces indentation

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