PHP Code Sniffer Exhaustive Review + Hotfix 1 for #737

This pull request from 7.x-1.x branch features a review made by PHP Code Sniffer on the WetKit Distribution. The results highlighted a lot of formattings issues such as loose CRLF's and invalid commenting. This commit brings the codebase up to D.O standards in order to get it approved.

This pull request also issues a Hotfix for issue #737.