Home >Backend Development >PHP Tutorial >PHP formatting tool Beautify PHP small BUG_PHP tutorial
Beautify PHP, a very useful php formatting tool
http://www.bierkandt.org/beautify/
http://pear.php.net/package/PHP_Beautifier/download
Recently there are new people in the group, and it’s really uncomfortable when their code is not standardized
This tool is really easy to use, even the messiest code can be formatted instantly
Throw it under Linux and you can quickly batch process @.@
Okay, the following is the topic of this post:
Beautify When PHP formats symbols, the ^= and &= judgments are omitted,
In line 426 of beautify_php.class.inc, add these two symbols
i > 0 AND !$ this->_comment) {
if (($a[$i] == "=" OR $a[$i] == "<" OR $a[$i] == ">" OR $a[$i] == "*")
/", $a[$i-1]) == 0) {
}
>