Hi,
I appreciate your app because it's helping me to re-indent code written by others.
I would like to submit a feature request.
1/ In function add_doctags_to_doc_comment, is it possible to replace:
case "package":
$newtext .= "* @Package ".$GLOBALS['default_package']."\n";
break;
by
case "package":
if ($GLOBALS['default_package']) {
$newtext .= "* @Package ".$GLOBALS['default_package']."\n";
}
break;
2/ Is it possible to propose an option to indent 'switch case' like in psr style ?
https://www.php-fig.org/psr/psr-12/#52-switch-case
I failed to find an acceptable code.
3/ I also have some code like :
$object->function1(...)
->function2(...)
->function3(...)
'->' is always indented to same level as '$'.
I will have preferred intented one level more.
Regards,
Hi,
I appreciate your app because it's helping me to re-indent code written by others.
I would like to submit a feature request.
1/ In function add_doctags_to_doc_comment, is it possible to replace:
case "package":
$newtext .= "* @Package ".$GLOBALS['default_package']."\n";
break;
by
case "package":
if ($GLOBALS['default_package']) {
$newtext .= "* @Package ".$GLOBALS['default_package']."\n";
}
break;
2/ Is it possible to propose an option to indent 'switch case' like in psr style ?
https://www.php-fig.org/psr/psr-12/#52-switch-case
I failed to find an acceptable code.
3/ I also have some code like :
$object->function1(...)
->function2(...)
->function3(...)
'->' is always indented to same level as '$'.
I will have preferred intented one level more.
Regards,