Use variable names of different lengths in DocBlock example#150
Use variable names of different lengths in DocBlock example#150sabernhardt wants to merge 1 commit intoWordPress:masterfrom
Conversation
If one global variable's name is longer than the other in the group, that can help demonstrate how they are "aligned by type, variable, and description." - My suggestions for the names could be better. - The `param` examples might benefit from a similar revision.
|
Then the parameters could use something like |
|
@sabernhardt Thank you for coming up with those examples. Seeing the examples you posted above.... I realize my remark about using existing WP globals was wrong, as it would lead to the example having an actual description, instead of just "Description". As for the variable names, I can live with the current ones. We can also change it to more typical "anonymous" examples like For the parameter example, the names could possible be changed to |
If one global variable's name is longer than the other in the group, that can help demonstrate how they are "aligned by type, variable, and description."
paramexamples might benefit from a similar revision.