How can you describe the parameters and return type (getter/setter) of your PHP functions?
I need to tell my moderator the return type and list the parameters for each function. I have hundreds of functions so this is becoming problem, since I need to do this for every single revision.
I use at the moment the following procedure
ack-grep "function " > /tmp/functions
2 . in Vim:
%s/\d//g, %s/{//, %s/://g
- `%s/.*.php/\U&/
- then putting the Uppercase filename to the beginning of the list of functions of each file
- put functions to one file and the parameters to another file such that the linenumbers match
- create a third file where you write either
setter
orgetter
for the corresponding line
paste -d"&" /tmp/{functions,functions_param,functions_type}
- add LaTeX formatting to each set of functions of each file