I want to tidy a large function include file where PHPDoc is only used partially. there are some functions without PHPDoc like
function name($var1,$var2){ // explanation what it does
# ...
}
and some where the PHPDoc exists but is incomplete like some variables missing:
/**
* explanation
*
* @param boolean $var1 foo foo foo
*
* @return null
*/
function name2($var1,$var2){
# ...
}
or just
/** explanation
*/
function name3($var1,$var2){
# ...
}
How is it possible to add all missing variable definitions and return values, using a correct "unknown" tag for the ones added?
It could analyse each function if it has a return value and it should convert the already existing comments (behind each function) and use them in PHPDoc.
I am aware that you will have to check the result manually, but it would be really helpful to generate a skeleton with the data that already exists.