Consider the following php function:
public function test(array $a, SomeObject $b)
{
return 0;
}
I would like to automatically generate the following code block:
/**
* @param array $a
* @param SomeObject $b
* @return int
*/
public function test(array $a, SomeObject $b)
{
return 0;
}
Also, after modifying the code block, I would like to reformat the code block so that all the types, names and documentation are aligned as columns e.g. if the type of SomeObject changes to SomeOtherObject, the line with the variable $a is also updated with the required spaces:
/**
* @param array _____$a // 5 spaces added to align $a with $b
* @param SomeOtherObject $b
* @return int
*/
public function test(array $a, SomeOtherObject $b)
{
return 0;
}
Is there a minor mode available that does this?
I have looked at: Is there a yasnippet producing a prepopulated doxygen comment?, but it relies on doxymacs which I believe is not maintained anymore.