Create/update PHPDOC comments in batch?
Hi all!
I have inherited a BIG project where the previous dev's didnt pay much attention to functions comments, so i have a lot of function like this:
class Foo{
public function bar($a, $b, $c){
//[do things]
return array($d => $f);
}
}
I saw that phpStorm suggest (and create) automatically the basilar phpdocs like:
/**
* @param $a
* @param $b
* @param $c
*
* @return array
*/
and also update where the comment missing some aspects (exceptions, return value, etc..)
Now im wondering if is possible to tell phpStorm to update automatically all the documentations in the current project, with or without preview.
Does anyone know how?
Please sign in to leave a comment.
Hi there,
Try this:
P.S.
Please note that "Missing PHPDoc comment" inspection ignores methods if it has no parameters and has no return something statements; therefore you cannot create missing PHPDocs this way where only method description will be provided (since you have to enter description manually -- nothing to generate at all).