Code standard / PHPdoc fixes.

This will be the last batch of these as there's more useful stuff to do :)

There's still some issues with the phpdoc types (64 warnings regarding parameter types not matching), but most of these seem to be search.php and view_all_set.php and the way they call gpc_get_string_array with META_FILTER_ANY aka an int, and even I'm not bored enough just yet to review filter api.

my rough plan is to get this merged, then update other commits that we've been discussing and do some more useful code fixes and reviewing, tomorrow and over the weekend