Re: parameters tags alignement in docblocks
| From: | Christian Weiske | Date: | Sun, 29 Jul 2007 16:32:40 +0000 |
| Subject: | Re: parameters tags alignement in docblocks | ||
| References: | 1 | Groups: | php.pear.qa |
| Request: | Send a blank email to pear-qa+get-4459@lists.php.net to get a copy of this message | ||
Michael,
> Looking at the function docblock, the tags contents are not aligned
> after the tag keywords (there is just one space), which looks like a
> documentation error (please correct me if I am wrong).:
> * @param string $arg1 the string to quote
> * @param int $arg2 an integer of how many problems happened.
> * Indent to the description's starting
> * for long ones.
IMO this is ok since it highlights the difference between the
parameters and you easily see when another parameter starts. This helps
with long parameter descriptions.
> Should we expect this (#1): all contents are aligned on the longest
> tag keyword as in the page and class docblocks (as
> PHP_DocBlockGenerator generates docblocks)?
> * @param string $arg1 the string to quote
I don't think that. If we do that, we would also need to expect that
2nd and 3rd levels of indentation should be kept the same which is just
dumb. We only have 85 chars space, and we should not waste it.
I'd say we should keep it as it has been - @deprecated is a good
example to where aligning everything to the same length is bad.
--
Regards/Mit freundlichen Grüßen
Christian Weiske