Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

newline in phpdoc #71

Open
michabbb opened this issue Mar 15, 2015 · 3 comments · May be fixed by #90
Open

newline in phpdoc #71

michabbb opened this issue Mar 15, 2015 · 3 comments · May be fixed by #90
Labels

Comments

@michabbb
Copy link

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
Copy link

+1

@mikemeier
Copy link

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.

@mikemeier mikemeier linked a pull request Aug 17, 2015 that will close this issue
@goetas
Copy link
Owner

goetas commented Aug 17, 2015

see comments on #90

@goetas goetas added the minor label Jul 15, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants