Added codesniffer rule to detect trailing whitespace

Signed-off-by: Chirayu Chiripal <chirayu.chiripal@gmail.com>
Merge pull request #1201 from D-storm/phpcs

Added codesniffer rule to detect trailing whitespace