您的位置:首页 > 编程语言 > PHP开发

PHP代码格式化批量脚本

2015-05-16 16:15 417 查看
@echo off
echo please input phpCB url:
set /p input=
cd /d "E:\tools\phpCB\"
phpCB --space-after-if --optimize-eol --space-after-switch --space-after-while --space-before-start-angle-bracket --one-true-brace-function-declaration --one-true-brace --extra-padding-for-case-statement --glue-amperscore --change-shell-comment-to-double-slashes-comment --indent-with-tab --force-large-php-code-tag --force-true-false-null-contant-lowercase --comment-rendering-style PEAR --equal-align-position 50 --padding-char-count 1 --glue-arrow %input% > %input%.phpCB
copy /y %input% %input%.bak
del %input%
copy /y %input%.phpCB %input%
del %input%.phpCB
pause
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: