This website requires JavaScript.
Explore
Help
Sign In
danog
/
PHP-Parser
Watch
1
Star
0
Fork
0
You've already forked PHP-Parser
mirror of
https://github.com/danog/PHP-Parser.git
synced
2024-12-03 09:47:59 +01:00
Code
Issues
Projects
Releases
Wiki
Activity
b31a973fa7
PHP-Parser
/
test
/
code
/
prettyPrinter
/
onlyPHP.file-test
18 lines
167 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Add prettyPrintFile() method
2013-04-15 20:53:23 +02:00
File containing only PHP
-----
<?php
echo 'Foo Bar';
echo 'Bar Foo';
-----
<?php
echo 'Foo Bar';
Pretty printer test coverage Our output for yield / yield from is currently not very nice, but also not easy to change.
2016-02-20 18:55:48 +01:00
echo 'Bar Foo';
-----
<?php
// avoid trim
-----
Introduce Nop statement to collect dangling comments A Nop statement will be inserted into statement lists if there are any trailing comments in the list (which would otherwise not be associated with any node). The pretty printer output currently still contains a superfluous newline.
2015-10-02 11:03:12 +02:00
<?php
// avoid trim
Reference in New Issue
Copy Permalink