Fixed line wrapping for PHP documentation

Documentation broke 80 char limit.

I think trailing whitespace on some lines were removed as well.