亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

php格式化工具Beautify PHP小小BUG

 更新時(shí)間:2008年04月24日 19:25:50   作者:  
Beautify PHP is written entirely in PHP. The program was tested with Linux and Windows, PHP 4.1.0 and PHP 4.3.1, but it should work on most systems running PHP.

Beautify PHP,很好用的php格式化工具
http://www.bierkandt.org/beautify/
http://pear.php.net/package/PHP_Beautifier/download

最近組內(nèi)來(lái)新人,他們代碼不太規(guī)范的時(shí)候看得實(shí)在不舒服

這個(gè)工具實(shí)在很好用,再亂的代碼瞬間就格式化好了

丟到linux下還可以快速批量處理@.@

好了,以下是本帖主題:

Beautify PHP格式化符號(hào)時(shí),遺漏了^=和&=判斷,

在beautify_php.class.inc第426行,增加這兩個(gè)符號(hào)

                       // add space before chars = < >
                        if ($i > 0 AND !$this->_comment) {
                            if (($a[$i] == "=" OR $a[$i] == "<" OR $a[$i] == ">" OR $a[$i] == "*")
                                AND preg_match("/([ |!|=|.|<|>|-|+|*|/|^|&]+)/", $a[$i-1]) == 0) {
                                $this->_outstr  = rtrim($this->_outstr)." ";
                            }
                        }

相關(guān)文章

最新評(píng)論