Sorry for the late reply. You could use PHP Front too. Indentation is done for all nestings of statements, 2 spaces per nesting.
Some customized Indentation is possible. And it is available in PHP Front.
The parser and the pretty printer are also tested together using the test-files of the source-distribution of PHP.
Each test-file is parsed, pretty-printed, parsed and pretty-printed again.
The correctness of this round-trip is tested by performing a diff between the two parsed and the two pretty-printed files.
However I got recommendation to use Standard one as it has many features. It has variable expressions and array expressions feautures. Where as in PHP front, it is still some bugs available to use arrays.
Standard Pretty Printer: (Variable Expressions & Array)
public function pExpr_Variable(Expr\Variable $node) {
if ($node->name instanceof Expr) {
return '${' . $this->p($node->name) . '}';
} else {
return '$' . $node->name;
}
}
public function pExpr_Array(Expr\Array_ $node) {
return 'array(' . $this->pCommaSeparated($node->items) . ')';
}