Closed deviantintegral closed 6 years ago
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
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.