Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically indent parameters #17

Closed
jacobwindsor opened this issue Jan 18, 2015 · 3 comments
Closed

Automatically indent parameters #17

jacobwindsor opened this issue Jan 18, 2015 · 3 comments

Comments

@jacobwindsor
Copy link

To comply with standards, it would be nice if doc blocks were automatically indented without the need of manually doing so.

E.g have this:

/* Description
*
* @param string  $aString   A short string.
* @param integer $anInteger A number.
* @param Object  $obj       Some kind of object.
*
* @returns mixed.
*/

Instead of what currently is returned:

/* Description
*
* @param string $aString A short string.
* @param integer $anInteger A number.
* @param Object $obj Some kind of object.
*
* @returns mixed.
*/

I apologize if there is a simple mustache function I can add to my templates but I simply have not been able to find any.

@tobyS
Copy link
Owner

tobyS commented Jan 18, 2015

You need to implement your own Mustache function here to do the trick. If
OK want to provide it to PDV, please file a pull request.
Am 18.01.2015 13:30 schrieb "Jacob Windsor" notifications@github.com:

To comply with standards, it would be nice if doc blocks were
automatically indented without the need of manually doing so.

E.g have this:

/* Description
*

  • @param string $aString A short string.
  • @param integer $anInteger A number.
  • @param Object $obj Some kind of object.
    *
  • @returns mixed.
    */

Instead of what currently is returned:

/* Description
*

  • @param string $aString A short string.
  • @param integer $anInteger A number.
  • @param Object $obj Some kind of object.
    *
  • @returns mixed.
    */

I apologize if there is a simple mustache function I can add to my
templates but I simply have not been able to find any.


Reply to this email directly or view it on GitHub
#17.

@tobyS
Copy link
Owner

tobyS commented Aug 28, 2015

Closing this issue since no pull request was filed.

@tobyS tobyS closed this as completed Aug 28, 2015
@ianchanning
Copy link

I have a workaround for this using the Tabular plugin that I documented in the StackOverflow answer, but it's far from perfect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants