我想知道是否有一个工具可以解析 PHP 项目并修复错误的代码样式。
那是一个没有变量的双引号字符串应该更改为单引号。
$var1="change enclosing to single quote"."here too";
$var2="change enclosing in this string but keep $i"."change it here";
我想在整个项目中自动重写为:
$var1='change enclosing to single quote'.'here too';
$var2='do not change enclosing in this string '.$i.'change it here';