newline in phpdoc
Opened this issue · 3 comments
michabbb commented
i noticed that very often the generated php files have a newline at the phpdoc, for example
/**
* Gets as result
*
* @return
* \macropage\sdks\plesk\types\output\ClientResponseTypeType\AddAnonymousType\ResultAnonymousType
*/
public function getResult()
{
return $this->result;
}
but it should look like
* @return \macropage\sdks\plesk\types\output\ClientResponseTypeType\AddAnonymousType\ResultAnonymousType
any idea where this is coming from ???
mikemeier commented
+1
mikemeier commented
I can fix this with
$docblock = new DocBlockGenerator();
$docblock->setWordWrap(false);
There are 10 creations like this in the ClassGenerator. @goetas should I implement a private property on the ClassGenerator Class or would you like to have something like:
$docBlock = new DocBlockGenerator();
$docBlock->setWordWrap(false);
$generator = new ClassGenerator();
$generator->setDocBlockPrototype($docBlock);
And in ClassGenerator there will be "private getDocBlockPrototype" which will clone the Prototype on every call.